Sha256: 9994aaa8d2fad48edd7c164501013318638211fc8510e3a956417e585ada9b75

Contents?: true

Size: 345 Bytes

Versions: 28

Compression:

Stored size: 345 Bytes

Contents

module Kontena::Cli::Master
  class CurrentCommand < Clamp::Command
    include Kontena::Cli::Common

    option ["--name"], :flag, "Show name only", default: false

    def execute
      master = current_master

      if name?
        puts master['name']
      else
        puts "#{master['name']} #{master['url']}"
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

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