# File lib/rudy/routines/shutdown.rb, line 67
67:     def raise_early_exceptions
68:       raise NoMachinesConfig unless @@config.machines
69:       
70:       # If this is a test run we don't care if the group is running
71:       if run?
72:         if @@global.position.nil?
73:           raise MachineGroupNotRunning, current_machine_group unless Rudy::Machines.running?
74:         else
75:           unless Rudy::Machines.running? @@global.position
76:             m = Rudy::Machine.new @@global.position
77:             raise MachineNotRunning, m.name 
78:           end
79:         end
80:       end
81:       
82:       ## NOTE: This check is disabled for now. If the private key doesn't exist
83:       ## it prevents shutting down.
84:       # Check private key after machine group, otherwise we could get an error
85:       # about there being no key which doesn't make sense if the group isn't running.
86:       ##raise Rudy::PrivateKeyNotFound, root_keypairpath unless has_keypair?(current_machine_root)
87:       if @routine
88:         bad = @routine.keys - @@allowed_actions
89:         raise UnsupportedActions.new(@name, bad) unless bad.empty?
90:       end
91:     end