Method: Lab::Controllers::VmController#to_file
- Defined in:
- lib/lab/vm_controller.rb
#to_file(file) ⇒ Object
109 110 111 |
# File 'lib/lab/vm_controller.rb', line 109 def to_file(file) File.open(file, 'w') { |f| @vms.each { |vm| f.puts vm.to_yaml } } end |