Sha256: 0b13316e99e6d1775317033e62bbe515a0c3808950532da3f4fb68ec4bb41a6a
Contents?: true
Size: 795 Bytes
Versions: 9
Compression:
Stored size: 795 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(:destroy) do |machine,rbox| puts $/, "Shutting down...", $/ machines << machine end machines end # Called by generic_machine_runner def raise_early_exceptions rmach = Rudy::Machines.new raise Rudy::PrivateKeyNotFound, root_keypairpath unless has_keypair?(:root) raise MachineGroupNotRunning, current_machine_group unless rmach.running? end end end; end
Version data entries
9 entries across 9 versions & 3 rubygems