# File lib/deltacloud/base_driver/base_driver.rb, line 116 def instance_actions_for(state) actions = [] state_key = state.downcase.to_sym states = instance_state_machine.states() current_state = states.find{|e| e.name == state.underscore.to_sym } if ( current_state ) actions = current_state.transitions.collect{|e|e.action} actions.reject!{|e| e.nil?} end actions end