Class: Rigit::Commands::Install::InstallHandler

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#argsObject (readonly)

Returns the value of attribute args.



14
15
16
# File 'lib/rigit/commands/install.rb', line 14

def args
  @args
end

#repoObject (readonly)

Returns the value of attribute repo.



14
15
16
# File 'lib/rigit/commands/install.rb', line 14

def repo
  @repo
end

#rig_nameObject (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

#executeObject



22
23
24
25
# File 'lib/rigit/commands/install.rb', line 22

def execute
  verify_dirs
  install
end