Sha256: 8f5ca385ab3487d1e3a04ce0586fabccde993c8dce9348838d894fe079f0b3b1
Contents?: true
Size: 920 Bytes
Versions: 2
Compression:
Stored size: 920 Bytes
Contents
# frozen_string_literal: true module Command class MaintenanceOff < Base NAME = "maintenance:off" OPTIONS = [ app_option(required: true), domain_option ].freeze DESCRIPTION = "Disables maintenance mode for an app" LONG_DESCRIPTION = <<~DESC - Disables maintenance mode for an app - Specify the one-off workload through `one_off_workload` in the `.controlplane/controlplane.yml` file - Optionally specify the maintenance workload through `maintenance_workload` in the `.controlplane/controlplane.yml` file (defaults to 'maintenance') - Maintenance mode is only supported for domains that use path based routing mode and have a route configured for the prefix '/' on either port 80 or 443 DESC def call maintenance_mode.disable! end private def maintenance_mode @maintenance_mode ||= MaintenanceMode.new(self) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cpflow-4.0.1 | lib/command/maintenance_off.rb |
cpflow-4.0.0 | lib/command/maintenance_off.rb |