Top Level Namespace

Defined Under Namespace

Modules: Api, ConfigCheck, ContainerManagerAdapter, OS, ResourceManagerAdapter, WfNodeApi Classes: ContainerManager, NotFoundError, ResourceManager

Instance Method Summary collapse

Instance Method Details

#translate_state(state) ⇒ String

Translates a container state to the whitefuses states

Parameters:

  • state (String)

    Original state

Returns:

  • (String)

    The translated state



35
36
37
38
39
40
41
42
# File 'lib/wf_node_api/translations.rb', line 35

def translate_state(state)
  case state
    when 'RUNNING'
      return 'RUNNING'
    else
      return 'STOPPED'
  end
end