Class: Abt::Providers::Devops::BaseCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Abt::Providers::Devops::BaseCommand
- Extended by:
- Forwardable
- Defined in:
- lib/abt/providers/devops/base_command.rb
Direct Known Subclasses
Commands::BranchName, Commands::Clear, Commands::Current, Commands::HarvestTimeEntryData, Commands::Pick, Commands::Share, Commands::WorkItems, Commands::WriteConfig
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#initialize(ari:, cli:) ⇒ BaseCommand
constructor
A new instance of BaseCommand.
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/devops/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
#config ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'lib/abt/providers/devops/base_command.rb', line 9 def config @config end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
9 10 11 |
# File 'lib/abt/providers/devops/base_command.rb', line 9 def path @path end |