Sha256: 648c56041043fcf93d9a7d19a4ea2095072b6e21bf9ff4bf7c37f98ee9bf0967

Contents?: true

Size: 1.53 KB

Versions: 7

Compression:

Stored size: 1.53 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(web app db).each do |server|
    namespace "deprec:#{server}" do
      
      desc "Install #{server} 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

7 entries across 7 versions & 4 rubygems

Version Path
Empact-deprec-1.99.21 lib/deprec/recipes/canonical.rb
andyh-deprec-1.99.26 lib/deprec/recipes/canonical.rb
andyh-deprec-1.99.27 lib/deprec/recipes/canonical.rb
isaac-deprec-1.99.30 lib/deprec/recipes/canonical.rb
isaac-deprec-1.99.32 lib/deprec/recipes/canonical.rb
centostrano-0.1 lib/deprec/recipes/canonical.rb
centostrano-0.2 lib/deprec/recipes/canonical.rb