Class: Cir::Cli::CommandWithRepository
- Defined in:
- lib/cir/cli/command_with_repository.rb
Overview
Parent command class that initializes repository instance
Direct Known Subclasses
DeregisterCommand, RegisterCommand, RestoreCommand, StatusCommand, UpdateCommand
Instance Attribute Summary collapse
-
#repository ⇒ Object
Repository instance.
Attributes inherited from Command
Instance Method Summary collapse
-
#initialize ⇒ CommandWithRepository
constructor
A new instance of CommandWithRepository.
Methods inherited from Command
Constructor Details
#initialize ⇒ CommandWithRepository
Returns a new instance of CommandWithRepository.
24 25 26 27 28 29 30 |
# File 'lib/cir/cli/command_with_repository.rb', line 24 def initialize # Initialize parent class first super # For all our other commands we need to have repository available self.repository = Cir::Repository.new(@cirHome) end |
Instance Attribute Details
#repository ⇒ Object
Repository instance
22 23 24 |
# File 'lib/cir/cli/command_with_repository.rb', line 22 def repository @repository end |