Module: Clusters::Concerns::ApplicationStatus

Instance Method Summary collapse

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)

116
117
118
# File 'app/models/clusters/concerns/application_status.rb', line 116

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

#status_statesObject


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

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)

120
121
122
# File 'app/models/clusters/concerns/application_status.rb', line 120

def update_in_progress?
  updating?
end

#updateable?Boolean

Returns:

  • (Boolean)

112
113
114
# File 'app/models/clusters/concerns/application_status.rb', line 112

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