Class: Hotdog::Commands::Update
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Hotdog::Commands::Update
- 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
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| (host_name, .dup) end else update_hosts(.dup) end end |