module Aptible::CLI::Subcommands::Rebuild

Public Class Methods

included(thor) click to toggle source
# File lib/aptible/cli/subcommands/rebuild.rb, line 5
def self.included(thor)
  thor.class_eval do
    include Helpers::Operation
    include Helpers::App

    desc 'rebuild', 'Rebuild an app, and restart its services'
    app_options
    def rebuild
      app = ensure_app(options)
      operation = app.create_operation!(type: 'rebuild')
      CLI.logger.info 'Rebuilding app...'
      attach_to_operation_logs(operation)
    end
  end
end

Public Instance Methods

rebuild() click to toggle source
# File lib/aptible/cli/subcommands/rebuild.rb, line 12
def rebuild
  app = ensure_app(options)
  operation = app.create_operation!(type: 'rebuild')
  CLI.logger.info 'Rebuilding app...'
  attach_to_operation_logs(operation)
end