Class: Rigit::Commands::Update::UpdateHandler

Inherits:
Object
  • Object
show all
Includes:
Colsole
Defined in:
lib/rigit/commands/update.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ UpdateHandler

Returns a new instance of UpdateHandler.



12
13
14
15
# File 'lib/rigit/commands/update.rb', line 12

def initialize(args)
  @args = args
  @rig_name = args['RIG']
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



10
11
12
# File 'lib/rigit/commands/update.rb', line 10

def args
  @args
end

#rig_nameObject (readonly)

Returns the value of attribute rig_name.



10
11
12
# File 'lib/rigit/commands/update.rb', line 10

def rig_name
  @rig_name
end

Instance Method Details

#executeObject



17
18
19
20
# File 'lib/rigit/commands/update.rb', line 17

def execute
  verify_dirs
  update
end