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
deprec-2.2.0 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.081 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.080 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.079 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.078 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.077 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.076 lib/deprec/recipes/canonical.rb
deprec-2.1.19 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.075 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.074 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.073 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.072 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.071 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.070 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.069 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.068 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.067 lib/deprec/recipes/canonical.rb
deprec-2.1.18 lib/deprec/recipes/canonical.rb
deprec-2.1.17 lib/deprec/recipes/canonical.rb
le1t0-deprec-2.1.6.066 lib/deprec/recipes/canonical.rb