Sha256: d573024465d987a994e7e5e7f0938f9f37f6f97a800af87c8592ffcf45297b9a

Contents?: true

Size: 630 Bytes

Versions: 4

Compression:

Stored size: 630 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...'
              attach_to_operation_logs(operation)
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aptible-cli-0.6.0 lib/aptible/cli/subcommands/rebuild.rb
aptible-cli-0.5.15 lib/aptible/cli/subcommands/rebuild.rb
aptible-cli-0.5.14 lib/aptible/cli/subcommands/rebuild.rb
aptible-cli-0.5.13 lib/aptible/cli/subcommands/rebuild.rb