Module: Gemfury::Configuration

Included in:
Gemfury, Client
Defined in:
lib/gemfury/configuration.rb

Constant Summary collapse

CONFIGURATION_DEFAULTS =
{
  user_api_key: nil,
  adapter: :net_http,
  endpoint: 'https://api.fury.io/',
  gitpoint: 'https://git.fury.io/',
  pushpoint: 'https://push.fury.io/',
  user_agent: "Gemfury RubyGem #{Gemfury::VERSION} (Ruby #{RUBY_VERSION})",
  api_version: 1,
  account: nil
}.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#accountString

The account to impersonate, if you have permissions for multiple accounts (If nil, no impersonation)

Returns:

  • (String)


47
48
49
# File 'lib/gemfury/configuration.rb', line 47

def 
  @account
end

#adapterSymbol

The adapter that will be used to connect

Returns:

  • (Symbol)


22
23
24
# File 'lib/gemfury/configuration.rb', line 22

def adapter
  @adapter
end

#api_versionInteger

Gemfury remote API version

Returns:

  • (Integer)


42
43
44
# File 'lib/gemfury/configuration.rb', line 42

def api_version
  @api_version
end

#endpointString

The endpoint that will be used to connect

Returns:

  • (String)


26
27
28
# File 'lib/gemfury/configuration.rb', line 26

def endpoint
  @endpoint
end

#gitpointString

The HTTP endpoint for git repo (used for .netrc credentials)

Returns:

  • (String)


30
31
32
# File 'lib/gemfury/configuration.rb', line 30

def gitpoint
  @gitpoint
end

#pushpointString

The endpoint for the Push API

Returns:

  • (String)


34
35
36
# File 'lib/gemfury/configuration.rb', line 34

def pushpoint
  @pushpoint
end

#user_agentString

The value sent in the ‘User-Agent’ header

Returns:

  • (String)


38
39
40
# File 'lib/gemfury/configuration.rb', line 38

def user_agent
  @user_agent
end

#user_api_keyString

user API key, also known as “full access token”

Returns:

  • (String)


18
19
20
# File 'lib/gemfury/configuration.rb', line 18

def user_api_key
  @user_api_key
end