Sha256: a15934580fddbe69e36c90360dc54c2505119852af63d613e3b42eb5fe09b14b

Contents?: true

Size: 591 Bytes

Versions: 8

Compression:

Stored size: 591 Bytes

Contents

module Aptible
  module CLI
    module Subcommands
      module Restart
        def self.included(thor)
          thor.class_eval do
            include Helpers::Operation
            include Helpers::App

            desc 'restart', 'Restart all services associated with an app'
            app_options
            def restart
              app = ensure_app(options)
              operation = app.create_operation(type: 'restart')
              puts 'Restarting app...'
              attach_to_operation_logs(operation)
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
aptible-cli-0.6.9 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.6.8 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.6.7 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.6.6 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.6.4 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.6.3 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.6.2 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.6.1 lib/aptible/cli/subcommands/restart.rb