Class RHC::Commands::Base
In: lib/rhc/commands/base.rb
Parent: Object

Methods

Included Modules

RHC::Helpers RHC::ContextHelpers

Classes and Modules

Class RHC::Commands::Base::InvalidCommand

Attributes

config  [R] 
config  [W] 
options  [R] 
options  [W] 

Public Class methods

Protected Class methods

Provide an alias to the command. The alias will not be shown in help, but will be available in autocompletion and at execution time.

Supported options:

  :deprecated - if true, a warning will be displayed when the command is executed
  :root_command - if true, do not prepend the object name to the command

def self.deprecated(msg)

  options[:deprecated] = msg

end

Protected Instance methods

Return a client object capable of making calls to the OpenShift API that transforms intent and options, to remote calls, and then handle the output (or failures) into exceptions and formatted object output. Most interactions should be through this call pattern.

[Validate]