Module: GemEnforcer
- Defined in:
- lib/gem_enforcer.rb,
lib/gem_enforcer/setup.rb,
lib/gem_enforcer/errors.rb,
lib/gem_enforcer/version.rb,
lib/gem_enforcer/retrieve.rb,
lib/gem_enforcer/configuration.rb,
lib/gem_enforcer/setup/behavior.rb,
lib/gem_enforcer/setup/validate.rb,
lib/gem_enforcer/retrieve/git_tag.rb,
lib/gem_enforcer/retrieve/gem_server.rb,
lib/gem_enforcer/setup/helper/retrieval.rb,
lib/gem_enforcer/setup/helper/on_failure.rb,
lib/gem_enforcer/setup/helper/version_enforcer.rb
Defined Under Namespace
Modules: Retrieve, Setup
Classes: ConfigError, Configuration, Error, ValidationError
Constant Summary
collapse
- DEFAULT_SERVER_SOURCE =
"https://rubygems.org"
- VERSION =
"0.1.2"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
15
16
17
|
# File 'lib/gem_enforcer.rb', line 15
def self.configuration
@configuration ||= GemEnforcer::Configuration.new
end
|
.configuration=(object) ⇒ Object
19
20
21
22
23
|
# File 'lib/gem_enforcer.rb', line 19
def self.configuration=(object)
raise ConfigError, "Expected configuration to be a GemEnforcer::Configuration" unless object.is_a?(GemEnforcer::Configuration)
@configuration = object
end
|
11
12
13
|
# File 'lib/gem_enforcer.rb', line 11
def self.configure
yield configuration if block_given?
end
|
.github_access_token ⇒ Object
25
26
27
|
# File 'lib/gem_enforcer.rb', line 25
def self.github_access_token
configuration.github_access_token
end
|
.logger ⇒ Object
29
30
31
|
# File 'lib/gem_enforcer.rb', line 29
def self.logger
configuration.logger
end
|