Sha256: b5a7cb01183289af27132ab5f9bb2de8c712688c11debb6893dd6e754d1572bd
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
namespace :foreman do desc 'Export the Procfile to Ubuntu upstart scripts' task :export do puts "hu" #on roles(:app) do |host| # within current_path do # as :root do # execute :mkdir, "-p #{fetch(:log_directory)}" # execute :chown, "-R #{host.user}: #{fetch(:log_directory)}" # execute :bundle, "exec foreman export upstart /etc/init -a #{fetch(:application)} -u #{host.user} -l #{fetch(:log_directory)}" # end # end #end end desc 'Start the application services' task :start do on roles(:app) do |host| as :root do execute :start, fetch(:application) end end end desc 'Stop the application services' task :stop do on roles(:app) do |host| as :root do execute :stop, fetch(:application) end end end desc 'Restart the application services' task :restart do on roles(:app) do |host| as :root do execute :service, "#{fetch(:application)} start || service #{fetch(:application)} restart" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capistrano3-foreman-0.2.0 | lib/capistrano/tasks/foreman.cap |
capistrano3-foreman-0.0.1 | lib/capistrano/tasks/foreman.cap |