Class: Librarian::Mock::Environment

Inherits:
Environment show all
Defined in:
lib/librarian/mock/environment.rb

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

Methods included from Support::AbstractMethod

included

Constructor Details

This class inherits a constructor from Librarian::Environment

Instance Method Details

#adapter_nameObject



9
10
11
# File 'lib/librarian/mock/environment.rb', line 9

def adapter_name
  "mock"
end

#adapter_versionObject



13
14
15
# File 'lib/librarian/mock/environment.rb', line 13

def adapter_version
  VERSION
end

#install_pathObject



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