Module: Gemfury::Configuration
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
-
#account ⇒ String
The account to impersonate, if you have permissions for multiple accounts (If nil, no impersonation).
-
#adapter ⇒ Symbol
The adapter that will be used to connect.
-
#api_version ⇒ Integer
Gemfury remote API version.
-
#endpoint ⇒ String
The endpoint that will be used to connect.
-
#gitpoint ⇒ String
The HTTP endpoint for git repo (used for .netrc credentials).
-
#pushpoint ⇒ String
The endpoint for the Push API.
-
#user_agent ⇒ String
The value sent in the ‘User-Agent’ header.
-
#user_api_key ⇒ String
user API key, also known as “full access token”.
Instance Attribute Details
#account ⇒ String
The account to impersonate, if you have permissions for multiple accounts (If nil, no impersonation)
47 48 49 |
# File 'lib/gemfury/configuration.rb', line 47 def account @account end |
#adapter ⇒ Symbol
The adapter that will be used to connect
22 23 24 |
# File 'lib/gemfury/configuration.rb', line 22 def adapter @adapter end |
#api_version ⇒ Integer
Gemfury remote API version
42 43 44 |
# File 'lib/gemfury/configuration.rb', line 42 def api_version @api_version end |
#endpoint ⇒ String
The endpoint that will be used to connect
26 27 28 |
# File 'lib/gemfury/configuration.rb', line 26 def endpoint @endpoint end |
#gitpoint ⇒ String
The HTTP endpoint for git repo (used for .netrc credentials)
30 31 32 |
# File 'lib/gemfury/configuration.rb', line 30 def gitpoint @gitpoint end |
#pushpoint ⇒ String
The endpoint for the Push API
34 35 36 |
# File 'lib/gemfury/configuration.rb', line 34 def pushpoint @pushpoint end |
#user_agent ⇒ String
The value sent in the ‘User-Agent’ header
38 39 40 |
# File 'lib/gemfury/configuration.rb', line 38 def user_agent @user_agent end |
#user_api_key ⇒ String
user API key, also known as “full access token”
18 19 20 |
# File 'lib/gemfury/configuration.rb', line 18 def user_api_key @user_api_key end |