lib/chef-workflow/support/vm.rb
#
# Save the marshalled representation to a file. Use VM.vm_file to control the
# location of this file.
#
Save the marshalled representation to a file. Use VM.vm_file to control the
location of this file.
Save the marshalled representation to a file . Use VM . vm_file to control the location of this file .
def save_to_file
    vm_file = GeneralSupport.singleton.vm_file
    marshalled = Marshal.dump(self)
    FileUtils.mkdir_p(File.dirname(vm_file))
    File.binwrite(vm_file, marshalled)
  end
def save_to_file vm_file = GeneralSupport . singleton . vm_file marshalled = Marshal . dump ( self ) FileUtils . mkdir_p ( File . dirname ( vm_file ) ) File . binwrite ( vm_file , marshalled ) end
Save the marshalled representation to a file.
Save the marshalled representation to a file .