Class: Forward::Command::Base
- Inherits:
-
Object
- Object
- Forward::Command::Base
- Includes:
- Forward::Common
- Defined in:
- lib/forward/command/base.rb
Constant Summary
Constants included from Forward::Common
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#options ⇒ Object
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}, args = []) ⇒ Base
constructor
A new instance of Base.
Methods included from Forward::Common
#config, #exit_with_error, #exit_with_message, #logged_in?, #logger, #os, #stop_reactor_and_exit, #windows?
Constructor Details
#initialize(options = {}, args = []) ⇒ Base
Returns a new instance of Base.
14 15 16 17 18 19 20 |
# File 'lib/forward/command/base.rb', line 14 def initialize( = {}, args = []) @opts = @options = .to_hash @args = args logger.debug "[CLI] options: #{@options.inspect}" logger.debug "[CLI] args: #{@args.inspect}" end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
7 8 9 |
# File 'lib/forward/command/base.rb', line 7 def args @args end |
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/forward/command/base.rb', line 6 def @options end |