Sha256: fd1f8960ada9bf79c795ee357ad361c87ad2b3bd5e038497c740215956171dde

Contents?: true

Size: 548 Bytes

Versions: 32

Compression:

Stored size: 548 Bytes

Contents

require_relative 'services_helper'

module Kontena::Cli::Services
  class DeployCommand < Clamp::Command
    include Kontena::Cli::Common
    include Kontena::Cli::GridOptions
    include ServicesHelper

    parameter "NAME", "Service name"
    option '--force-deploy', :flag, 'Force deploy even if service does not have any changes'

    def execute
      require_api_url
      token = require_token
      service_id = name
      data = {}
      data[:force] = true if force_deploy?
      deploy_service(token, service_id, data)
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
kontena-cli-0.15.5 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.15.5.rc2 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.15.5.rc1 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.15.4 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.15.4.rc2 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.15.4.rc1 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.15.4.pre1 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.15.3 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.15.2 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.15.1 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.15.0 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.15.0.rc3 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.15.0.rc2 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.15.0.rc1 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.14.7 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.14.6 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.14.5 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.14.4 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.14.3 lib/kontena/cli/services/deploy_command.rb
kontena-cli-0.14.2 lib/kontena/cli/services/deploy_command.rb