Module: Clusters::Concerns::ApplicationStatus

Instance Method Summary collapse

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)

118
119
120
# File 'app/models/clusters/concerns/application_status.rb', line 118

def available?
  pre_installed? || installed? || externally_installed? || updated?
end

#status_statesObject


108
109
110
111
112
# File 'app/models/clusters/concerns/application_status.rb', line 108

def status_states
  self.class.state_machines[:status].states.each_with_object({}) do |state, states|
    states[state.name] = state.value
  end
end

#update_in_progress?Boolean

Returns:

  • (Boolean)

122
123
124
# File 'app/models/clusters/concerns/application_status.rb', line 122

def update_in_progress?
  updating?
end

#updateable?Boolean

Returns:

  • (Boolean)

114
115
116
# File 'app/models/clusters/concerns/application_status.rb', line 114

def updateable?
  installed? || updated? || update_errored?
end