Sha256: 175b4b4b1e0f087bc90c95c91319a4863fe4ce320d5f8fbcb2751e77668dbdf4

Contents?: true

Size: 732 Bytes

Versions: 1

Compression:

Stored size: 732 Bytes

Contents

module Yad
  module App
    class Passenger
      def self.build_start_command(release_directory)
        "touch #{release_directory}/tmp/restart.txt"
      end
      
       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
       
    end # class Passenger
    
  end # module App
end # module Yad

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yad-0.0.4 lib/yad/app/passenger.rb