Sha256: 23d57233878a78fa7def9c964b66fed293b49c0e1bbd3b216795df1479c1ae9b

Contents?: true

Size: 625 Bytes

Versions: 7

Compression:

Stored size: 625 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
            option :remote, aliases: '-r'
            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

7 entries across 7 versions & 1 rubygems

Version Path
aptible-cli-0.5.12 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.5.11 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.5.10 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.5.9 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.5.8 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.5.7 lib/aptible/cli/subcommands/restart.rb
aptible-cli-0.5.6 lib/aptible/cli/subcommands/restart.rb