Sha256: 9556f590c22e19eaa8b6ee992ea96c220f0b2ea84ce33e0c80e585a8ebb911c7
Contents?: true
Size: 915 Bytes
Versions: 2
Compression:
Stored size: 915 Bytes
Contents
# frozen_string_literal: true module Command class MaintenanceOn < Base NAME = "maintenance:on" OPTIONS = [ app_option(required: true), domain_option ].freeze DESCRIPTION = "Enables maintenance mode for an app" LONG_DESCRIPTION = <<~DESC - Enables 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.enable! 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_on.rb |
cpflow-4.0.0 | lib/command/maintenance_on.rb |