Sha256: ca869a7a91e092ebb160ef0d9b959bc4c3cc77737352de50bbbb5904c7f71411
Contents?: true
Size: 634 Bytes
Versions: 64
Compression:
Stored size: 634 Bytes
Contents
Capistrano::Configuration.instance(true).load do set :apache_init_path, "/etc/init.d/apache2" namespace :apache do desc "Stops the apache web server" task :stop, :roles => :web do puts "Stopping the apache server" sudo "#{apache_init_path} stop" end desc "Starts the apache web server" task :start, :roles => :web do puts "Starting the apache server" sudo "#{apache_init_path} start" end desc "Restarts the apache web server" task :restart, :roles => :web do puts "Restarting the apache server" sudo "#{apache_init_path} restart" end end end
Version data entries
64 entries across 64 versions & 4 rubygems