Sha256: 13701485c05bc185d6c48c117b9e0a44698c701498d094b60df5bf03f9ef6dcc
Contents?: true
Size: 900 Bytes
Versions: 8
Compression:
Stored size: 900 Bytes
Contents
# frozen_string_literal: true module Command class PsRestart < Base NAME = "ps:restart" OPTIONS = [ app_option(required: true), workload_option ].freeze DESCRIPTION = "Forces redeploy of workloads in app" LONG_DESCRIPTION = <<~HEREDOC - Forces redeploy of workloads in app HEREDOC EXAMPLES = <<~HEREDOC ```sh # Forces redeploy of all workloads in app. cpl ps:restart -a $APP_NAME # Forces redeploy of a specific workload in app. cpl ps:restart -a $APP_NAME -w $WORKLOAD_NAME ``` HEREDOC def call workloads = [config.options[:workload]] if config.options[:workload] workloads ||= config[:app_workloads] + config[:additional_workloads] workloads.each do |workload| cp.workload_force_redeployment(workload) progress.puts "#{workload} restarted" end end end end
Version data entries
8 entries across 8 versions & 1 rubygems