Sha256: 088c4e36117d464d4a1a8c393bb923c2fb7020fecb9ee48e67c1a2a9c6884072
Contents?: true
Size: 373 Bytes
Versions: 18
Compression:
Stored size: 373 Bytes
Contents
require_relative 'services_helper' module Kontena::Cli::Services class RestartCommand < Clamp::Command include Kontena::Cli::Common include ServicesHelper parameter "NAME", "Service name" def execute require_api_url token = require_token result = client(token).post("services/#{parse_service_id(name)}/restart", {}) end end end
Version data entries
18 entries across 18 versions & 1 rubygems