Sha256: a894bf8326a1b65ebb3fa23b5f9435d69a19d2cb9324bf85de0b4898b58b9a39

Contents?: true

Size: 870 Bytes

Versions: 26

Compression:

Stored size: 870 Bytes

Contents

# encoding: UTF-8
#
# Copyright (c) 2010-2015 GoodData Corporation. All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

require_relative '../shared'
require_relative '../../commands/auth'

module GoodData
  module CLI
    desc 'Work with your locally stored credentials'
    command :auth do |c|
      c.desc 'Store your credentials to ~/.gooddata so client does not have to ask you every single time'
      c.command :store do |store|
        store.action do |_global_options, _options, _args|
          GoodData::Command::Auth.store
        end
      end

      c.desc 'Clean the credentials'
      c.command :clear do |store|
        store.action do |_global_options, _options, _args|
          GoodData::Command::Auth.unstore
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
gooddata-edge-0.6.27.edge lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.49 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.48 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.47 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.46 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.45 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.44 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.43 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.42 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.41 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.40 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.39 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.38 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.37 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.36 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.35 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.34 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.33 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.32 lib/gooddata/cli/commands/auth_cmd.rb
gooddata-0.6.31 lib/gooddata/cli/commands/auth_cmd.rb