Sha256: ca003680153a7763fe0c18f7181a82c6a08a9d4bebc624c9be31dd6e2d9c61d1

Contents?: true

Size: 803 Bytes

Versions: 14

Compression:

Stored size: 803 Bytes

Contents

require 'engineyard-serverside/cli/workflows/base'

module EY
  module Serverside
    module CLI
      module Workflows

        # RestartingApplications is a Workflow that restarts the application
        # specified in the options
        class RestartingApplications < Base
          private
          def procedure
            restart_options[:release_path] = Pathname.new(
              "/data/#{options[:app]}/current"
            )

            propagate_serverside

            EY::Serverside::Deploy.
              new(servers, config, shell).
              restart_with_maintenance_page

          end

          def restart_options
            @restart_options ||= options.dup
          end

          def task_name
            'restart'
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
engineyard-serverside-3.0.4 lib/engineyard-serverside/cli/workflows/restarting_applications.rb
engineyard-serverside-3.0.3 lib/engineyard-serverside/cli/workflows/restarting_applications.rb
engineyard-serverside-2.8.0 lib/engineyard-serverside/cli/workflows/restarting_applications.rb
engineyard-serverside-2.8.0.pre4 lib/engineyard-serverside/cli/workflows/restarting_applications.rb
engineyard-serverside-2.8.0.pre3 lib/engineyard-serverside/cli/workflows/restarting_applications.rb
engineyard-serverside-2.8.0.pre2 lib/engineyard-serverside/cli/workflows/restarting_applications.rb
engineyard-serverside-2.8.0.pre lib/engineyard-serverside/cli/workflows/restarting_applications.rb
engineyard-serverside-2.7.0.pre lib/engineyard-serverside/cli/workflows/restarting_applications.rb
engineyard-serverside-2.6.19 lib/engineyard-serverside/cli/workflows/restarting_applications.rb
engineyard-serverside-2.6.17 lib/engineyard-serverside/cli/workflows/restarting_applications.rb
engineyard-serverside-2.6.16 lib/engineyard-serverside/cli/workflows/restarting_applications.rb
engineyard-serverside-2.6.15.alpha1 lib/engineyard-serverside/cli/workflows/restarting_applications.rb
engineyard-serverside-2.6.15.cf2 lib/engineyard-serverside/cli/workflows/restarting_applications.rb
engineyard-serverside-2.6.15.pre lib/engineyard-serverside/cli/workflows/restarting_applications.rb