Class: Hotdog::Commands::Update

Inherits:
BaseCommand show all
Defined in:
lib/hotdog/commands/update.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#application, #formatter, #logger, #options, #tags

Instance Method Summary collapse

Methods inherited from BaseCommand

#execute, #initialize

Constructor Details

This class inherits a constructor from Hotdog::Commands::BaseCommand

Instance Method Details

#run(args = []) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/hotdog/commands/update.rb', line 6

def run(args=[])
  if 0 < args.length
    args.each do |host_name|
      update_host_tags(host_name, @options.dup)
    end
  else
    update_hosts(@options.dup)
  end
end