Class: Rigit::Commands::Install::InstallHandler
- Inherits:
-
Object
- Object
- Rigit::Commands::Install::InstallHandler
- Includes:
- Colsole
- Defined in:
- lib/rigit/commands/install.rb
Overview
Internal class to handle rig installation for the Rigit::CommandLine class.
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
-
#rig_name ⇒ Object
readonly
Returns the value of attribute rig_name.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(args) ⇒ InstallHandler
constructor
A new instance of InstallHandler.
Constructor Details
#initialize(args) ⇒ InstallHandler
Returns a new instance of InstallHandler.
16 17 18 19 20 |
# File 'lib/rigit/commands/install.rb', line 16 def initialize(args) @args = args @rig_name = args['RIG'] @repo = args['REPO'] end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
14 15 16 |
# File 'lib/rigit/commands/install.rb', line 14 def args @args end |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
14 15 16 |
# File 'lib/rigit/commands/install.rb', line 14 def repo @repo end |
#rig_name ⇒ Object (readonly)
Returns the value of attribute rig_name.
14 15 16 |
# File 'lib/rigit/commands/install.rb', line 14 def rig_name @rig_name end |
Instance Method Details
#execute ⇒ Object
22 23 24 25 |
# File 'lib/rigit/commands/install.rb', line 22 def execute verify_dirs install end |