Class: Yad::App::Passenger
- Inherits:
-
Object
- Object
- Yad::App::Passenger
- Defined in:
- lib/yad/app/passenger.rb
Class Method Summary collapse
Class Method Details
.build_start_command(release_directory) ⇒ Object
4 5 6 |
# File 'lib/yad/app/passenger.rb', line 4 def self.build_start_command(release_directory) "touch #{release_directory}/tmp/restart.txt" end |
.define_tasks ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/yad/app/passenger.rb', line 8 def self.define_tasks return if @tasks_already_defined @tasks_already_defined = true namespace :yad do namespace :app do desc "Starts the application server" remote_task :start, :roles => :app do cmd = Yad::App::Passenger.build_start_command(current_path) run(cmd) puts("Passenger app restarted on #{target_host}") end end end end |