Sha256: de5a8bfe4508b7e61a8649133a87135ae24cdf0b983d2feecb161b1e390597a7
Contents?: true
Size: 900 Bytes
Versions: 10
Compression:
Stored size: 900 Bytes
Contents
module Rudy; module Routines; class Shutdown < Rudy::Routines::Base def init(*args) @routine = fetch_routine_config(:shutdown) end def execute routine_separator(:shutdown) unless @routine STDERR.puts "[this is a generic shutdown routine]" @routine = {} end machines = generic_machine_runner(:list) do |machine| machine.destroy end machines end # Called by generic_machine_runner def raise_early_exceptions rmach = Rudy::Machines.new raise MachineGroupNotRunning, current_machine_group unless rmach.running? # Check private key after machine group, otherwise we could get an error # about there being no key which doesn't make sense if the group isn't running. raise Rudy::PrivateKeyNotFound, root_keypairpath unless has_keypair?(:root) end end end; end
Version data entries
10 entries across 10 versions & 2 rubygems