Class: Librarian::Mock::Environment
Instance Attribute Summary
Attributes inherited from Environment
#ui
Instance Method Summary
collapse
Methods inherited from Environment
#cache_path, #config_db, #config_keys, #default_specfile_name, #dsl, #dsl_class, #ephemeral_lockfile, #http_proxy_uri, #initialize, #lock, #lockfile, #lockfile_name, #lockfile_path, #logger, #net_http_class, #project_path, #project_relative_path_to, #resolver, #scratch_path, #spec, #specfile, #specfile_name, #specfile_path, #tmp_path, #version
included
Instance Method Details
#adapter_name ⇒ Object
9
10
11
|
# File 'lib/librarian/mock/environment.rb', line 9
def adapter_name
"mock"
end
|
#adapter_version ⇒ Object
13
14
15
|
# File 'lib/librarian/mock/environment.rb', line 13
def adapter_version
VERSION
end
|
#install_path ⇒ Object
17
18
19
|
# File 'lib/librarian/mock/environment.rb', line 17
def install_path
nil
end
|
#registry(options = nil, &block) ⇒ Object
21
22
23
24
25
|
# File 'lib/librarian/mock/environment.rb', line 21
def registry(options = nil, &block)
@registry ||= Source::Mock::Registry.new
@registry.merge!(options, &block)
@registry
end
|