Sha256: fe332db920e0c3acc363946c959200757f8cd9afd5ee235b547a7fb563b6b247

Contents?: true

Size: 1.72 KB

Versions: 135

Compression:

Stored size: 1.72 KB

Contents

# Copyright 2006-2008 by Mike Bailey. All rights reserved.
# canonical.rb
#
# Running deprec:web:stop will be the same as running deprec:apache:stop or 
# deprec:nginx:stop depending what you have chosen.
#
# generic namespaces are linked up to chosen applications at runtime but these
# stubs are so they'll be included in the output of "cap -T"
#
Capistrano::Configuration.instance(:must_exist).load do 
  
  %w(ruby).each do |package|
    namespace "deprec:#{package}" do
      
      desc "Install #{package.capitalize}"
      task :install do 
      end
      
    end
  end
  
  %w(web app db).each do |server|
    namespace "deprec:#{server}" do
      
      desc "Install #{server.capitalize} server"
      task :install, :roles => server do 
      end
      
      desc "Generate config file(s) for #{server} server from template(s)"
      task :config_gen do
      end
      
      desc "Deploy configuration files(s) for #{server} server"
      task :config, :roles => server do
      end
      
      desc "Start #{server} server"
      task :start, :roles => server do
      end
      
      desc "Stop #{server} server"
      task :stop, :roles => server do
      end
      
      desc "Stop #{server} server"
      task :restart, :roles => server do
      end
      
      desc "Enable startup script for #{server} server"
      task :activate, :roles => server do
      end  
      
      desc "Disable startup script for #{server} server"
      task :deactivate, :roles => server do
      end
      
      desc "Backup data for #{server} server"
      task :backup, :roles => server do
      end
      
      desc "Restore data for #{server} server from backup"
      task :restore, :roles => server do
      end
      
    end
  end
  
end

Version data entries

135 entries across 135 versions & 3 rubygems

Version Path
le1t0-deprec-2.1.6.031 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.030 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.029 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.028 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.027 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.026 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.025 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.024 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.023 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.022 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.021 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.020 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.019 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.018 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.017 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.016 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.015 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.014 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.013 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.012 lib/deprec/recipes/canonical.rb