Sha256: 21992834f28e2afef56866570c6126885f06dfad6f005390aadaaeaa9651193a
Contents?: true
Size: 796 Bytes
Versions: 2
Compression:
Stored size: 796 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 task_separator("SHUTDOWN") 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
solutious-rudy-0.7.0 | lib/rudy/routines/shutdown.rb |
rudy-0.7.0 | lib/rudy/routines/shutdown.rb |