Sha256: 9ea96917b0e4bbfc806e9c22b5f7758c568c0d6c7488bf38eac97b0de2d2d0fd

Contents?: true

Size: 583 Bytes

Versions: 8

Compression:

Stored size: 583 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'
            option :app
            def restart
              app = ensure_app(options)
              operation = app.create_operation(type: 'restart')
              puts 'Restarting app...'
              poll_for_success(operation)
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
aptible-cli-0.5.5 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.5.4 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.5.2 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.5.1 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.5.0 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.4.4 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.4.3 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.4.2 lib/aptible/cli/subcommands/restart.rb