Sha256: c108dcc3970bb1fb02a655cbe93e31df904a85883ca6d5f27220d02f24958ccb
Contents?: true
Size: 1.15 KB
Versions: 10
Compression:
Stored size: 1.15 KB
Contents
module Rudy; module Routines; class Passthrough < Rudy::Routines::Base def init(*args) @routine_name = args.first @routine = fetch_routine_config(@routine_name) end # * +each_mach+ is an optional block which is executed between # disk creation and the after scripts. The will receives two # arguments: instances of Rudy::Machine and Rye::Box. def execute(&each_mach) routine_separator(@routine_name) machines = [] generic_machine_runner(:list) do |machine,rbox| puts $/ #, "[routine: #{@routine_name}]" machines << machine end machines end # Called by generic_machine_runner def raise_early_exceptions raise Rudy::Error, "No routine name" unless @routine_name raise NoRoutine, @routine_name unless @routine rmach = Rudy::Machines.new raise Rudy::PrivateKeyNotFound, root_keypairpath unless has_keypair?(:root) raise MachineGroupNotDefined, current_machine_group unless known_machine_group? if !@@global.offline && !rmach.running? raise MachineGroupNotRunning, current_machine_group end end end end; end
Version data entries
10 entries across 10 versions & 3 rubygems