lib/command/ps_start.rb in cpl-0.4.1 vs lib/command/ps_start.rb in cpl-0.5.0

- old
+ new

@@ -6,29 +6,30 @@ OPTIONS = [ app_option(required: true), workload_option ].freeze DESCRIPTION = "Starts workloads in app" - LONG_DESCRIPTION = <<~HEREDOC + LONG_DESCRIPTION = <<~DESC - Starts workloads in app - HEREDOC - EXAMPLES = <<~HEREDOC + DESC + EXAMPLES = <<~EX ```sh # Starts all workloads in app. cpl ps:start -a $APP_NAME # Starts a specific workload in app. cpl ps:start -a $APP_NAME -w $WORKLOAD_NAME ``` - HEREDOC + EX def call workloads = [config.options[:workload]] if config.options[:workload] workloads ||= config[:app_workloads] + config[:additional_workloads] workloads.reverse_each do |workload| - cp.workload_set_suspend(workload, false) - progress.puts "#{workload} started" + step("Starting workload '#{workload}'") do + cp.workload_set_suspend(workload, false) + end end end end end