class Blazing::Recipe::UpstartRestart
Public Instance Methods
run(target_options = {})
click to toggle source
Calls superclass method
# File lib/appboost/blazing/upstart_restart.rb, line 5 def run(target_options = {}) super target_options if options[:processes].nil? || options[:processes].empty? info "restarting appl" system "#{sudo} start #{application} || #{sudo} restart #{application}" else info "restarting app processes - [#{options[:processes]}" options[:processes].each do |p| system "#{sudo} start #{application}-#{p} || #{sudo} restart #{application}-#{p}" end end end
Private Instance Methods
application()
click to toggle source
# File lib/appboost/blazing/upstart_restart.rb, line 21 def application options[:app] || pwd end
pwd()
click to toggle source
# File lib/appboost/blazing/upstart_restart.rb, line 25 def pwd Dir.pwd.split('/').last end
sudo()
click to toggle source
# File lib/appboost/blazing/upstart_restart.rb, line 29 def sudo options[:sudo] || 'sudo' end