lib/abid/state_manager.rb
def state(name, params, dryrun: false, volatile: false)
      return VolatileStateService.new(@states, name, params) if volatile
      return NullStateService.new(@states, name, params) if dryrun
      StateService.new(@states, name, params)
    end
# Returns StateService object from name and params.
# @param name [String] task name
# @param params [Hash]
# @return [StateManager::StateService]
Returns StateService object from name and params.
Returns StateService object from name and params .
def state(name, params, dryrun: false, volatile: false)
      return VolatileStateService.new(@states, name, params) if volatile
      return NullStateService.new(@states, name, params) if dryrun
      StateService.new(@states, name, params)
    end
def state ( name , params , dryrun : false , volatile : false ) return VolatileStateService . new ( @states , name , params ) if volatile return NullStateService . new ( @states , name , params ) if dryrun StateService . new ( @states , name , params ) end
Returns StateService object from name and params.
Returns StateService object from name and params .
None
StateManager::StateService
name
None
params
dryrun
volatile
None