Class: UffizziCore::Api::Cli::V1::Cluster::SyncForm
- Inherits:
-
Cluster
- Object
- Cluster
- UffizziCore::Api::Cli::V1::Cluster::SyncForm
- Includes:
- UffizziCore::ApplicationForm
- Defined in:
- app/forms/uffizzi_core/api/cli/v1/cluster/sync_form.rb
Instance Method Summary collapse
Methods included from MassAssignmentControlConcern
Instance Method Details
#sync_status ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/forms/uffizzi_core/api/cli/v1/cluster/sync_form.rb', line 8 def sync_status cluster_data = UffizziCore::ControllerService.show_cluster(self) asleep_in_cluster = cluster_data.status.sleep return unless deployed? || scaled_down? return if actual_status?(asleep_in_cluster) self.state = asleep_in_cluster ? UffizziCore::Cluster::STATE_SCALED_DOWN : UffizziCore::Cluster::STATE_DEPLOYED self end |