Sha256: 867c14ef271744c06e955b702031dd260e19072aa77312c5d4ba64852fb5bde5
Contents?: true
Size: 444 Bytes
Versions: 16
Compression:
Stored size: 444 Bytes
Contents
module Mccloud module Command class HaltCommand < Base argument :box_name, :type => :string, :optional => true, :default => nil register "halt [NAME]", "Shutdown the machine" def execute env.load! env.config.providers.each do |name,provider| env.logger.debug("Asking provider #{name} to halt box #{box_name}") provider.halt(box_name,options) end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems