Class: Abt::Providers::Harvest::BaseCommand

Inherits:
BaseCommand
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/abt/providers/harvest/base_command.rb

Instance Attribute Summary collapse

Attributes inherited from BaseCommand

#ari, #cli, #flags

Instance Method Summary collapse

Methods inherited from BaseCommand

description, flags, #perform, usage

Constructor Details

#initialize(ari:, cli:) ⇒ BaseCommand

Returns a new instance of BaseCommand.



13
14
15
16
17
18
# File 'lib/abt/providers/harvest/base_command.rb', line 13

def initialize(ari:, cli:)
  super

  @config = Configuration.new(cli: cli)
  @path = ari.path ? Path.new(ari.path) : config.path
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



9
10
11
# File 'lib/abt/providers/harvest/base_command.rb', line 9

def config
  @config
end

#pathObject (readonly)

Returns the value of attribute path.



9
10
11
# File 'lib/abt/providers/harvest/base_command.rb', line 9

def path
  @path
end