Sha256: d088d664ce92a934b5bca4f74bb12061d696734765f43a8184ce567208dadf94
Contents?: true
Size: 558 Bytes
Versions: 44
Compression:
Stored size: 558 Bytes
Contents
require_relative 'common' module Kontena::Cli::Stacks class RestartCommand < Kontena::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions include Common banner "Restarts all services of a stack that has been installed in a grid on Kontena Master" parameter "NAME", "Stack name" requires_current_master requires_current_master_token def execute spinner "Sending restart signal for stack services" do client.post("stacks/#{current_grid}/#{name}/restart", {}) end end end end
Version data entries
44 entries across 44 versions & 1 rubygems