Sha256: 9ca912e492b4e4dd2f232c6d65d65405b1b4c6d89862e716933a24581d944899
Contents?: true
Size: 601 Bytes
Versions: 27
Compression:
Stored size: 601 Bytes
Contents
require 'optparse' module VagrantPlugins module CommandSuspend class Command < Vagrant.plugin("2", :command) def self.synopsis "suspends the machine" end def execute opts = OptionParser.new do |o| o.banner = "Usage: vagrant suspend [name|id]" end # Parse the options argv = parse_options(opts) return if !argv @logger.debug("'suspend' each target VM...") with_target_vms(argv) do |vm| vm.action(:suspend) end # Success, exit status 0 0 end end end end
Version data entries
27 entries across 27 versions & 4 rubygems