Class: Convoy::ActionCommand::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/convoy/action_command/base.rb

Direct Known Subclasses

ConvoyUtilityCommand

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options, arguments, config = {}) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
11
12
13
14
15
# File 'lib/convoy/action_command/base.rb', line 6

def initialize(options, arguments, config={})
    @options             = options
    @arguments           = arguments
    @config              = config
    @command_context     = nil
    @command_options     = nil
    @parent_options      = nil
    @grandparent_options = nil
    @global_options      = nil
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



4
5
6
# File 'lib/convoy/action_command/base.rb', line 4

def arguments
  @arguments
end

#configObject (readonly)

Returns the value of attribute config.



4
5
6
# File 'lib/convoy/action_command/base.rb', line 4

def config
  @config
end

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/convoy/action_command/base.rb', line 4

def options
  @options
end