Sha256: 277cdf59c52efa5b1250697f70476887319c8615247b2227b31d4e08664bb80f

Contents?: true

Size: 622 Bytes

Versions: 7

Compression:

Stored size: 622 Bytes

Contents

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

            desc 'rebuild', 'Rebuild an app, and restart its services'
            option :app
            option :remote, aliases: '-r'
            def rebuild
              app = ensure_app(options)
              operation = app.create_operation(type: 'rebuild')
              puts 'Rebuilding 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/rebuild.rb
aptible-cli-0.5.11 lib/aptible/cli/subcommands/rebuild.rb
aptible-cli-0.5.10 lib/aptible/cli/subcommands/rebuild.rb
aptible-cli-0.5.9 lib/aptible/cli/subcommands/rebuild.rb
aptible-cli-0.5.8 lib/aptible/cli/subcommands/rebuild.rb
aptible-cli-0.5.7 lib/aptible/cli/subcommands/rebuild.rb
aptible-cli-0.5.6 lib/aptible/cli/subcommands/rebuild.rb