Method: Mccloud::Command#reload

Defined in:
lib/mccloud/provider/core/vm/old_reload.rb

#reload(selection = nil?) ) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/mccloud/provider/core/vm/old_reload.rb', line 3

def reload(selection=nil?)
  load_config
  on_selected_machines(selection) do |id,vm|
    puts "rebooting #{id}"
    vm.instance.reboot
  end
end