Method: VMC::Cli::ManifestHelper#save_manifest

Defined in:
lib/cli/manifest_helper.rb

#save_manifest(save_to = nil) ⇒ Object



71
72
73
74
75
76
77
78
79
# File 'lib/cli/manifest_helper.rb', line 71

def save_manifest(save_to = nil)
  save_to ||= target_manifest

  File.open(save_to, "w") do |f|
    f.write @manifest.to_yaml
  end

  say "Manifest written to #{save_to}."
end