Class: EYCli::Command::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ey_cli/commands/base.rb

Direct Known Subclasses

Accounts, Apps, Console, CreateApp, CreateEnv, Deploy, Help, Show

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/ey_cli/commands/base.rb', line 4

def options
  @options
end

Instance Method Details

#options_parserObject



11
12
13
# File 'lib/ey_cli/commands/base.rb', line 11

def options_parser
  EYCli::OptionsParser.new # TODO: Override to extend
end

#run(args = []) ⇒ Object



6
7
8
9
# File 'lib/ey_cli/commands/base.rb', line 6

def run(args = [])
  @options = options_parser.parse(args)
  invoke
end