Sha256: a5217c743fd05b9784579bdd54642c2352790fa16c89afce3012bfa23a298edc

Contents?: true

Size: 324 Bytes

Versions: 2

Compression:

Stored size: 324 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
      restart_service(token, name)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kontena-cli-0.11.7 lib/kontena/cli/services/restart_command.rb
kontena-cli-0.11.6 lib/kontena/cli/services/restart_command.rb