Class: Librarian::Mock::Environment

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

Instance Attribute Summary

Attributes inherited from Environment

#runtime_cache, #ui

Instance Method Summary collapse

Methods inherited from Environment

#adapter_module, #adapter_name, #adapter_version, #cache_path, #config_db, #config_keys, #default_specfile_name, #dsl, #dsl_class, #ephemeral_lockfile, #http_proxy_uri, #initialize, #inspect, #lock, #lockfile, #lockfile_name, #lockfile_path, #logger, #net_http_class, #project_path, #project_relative_path_to, #resolver, #resolver_options, #resolver_permit_cyclic_reslutions?, #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

#install_pathObject



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

def install_path
  nil
end

#registry(options = nil, &block) ⇒ Object



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

def registry(options = nil, &block)
  @registry ||= Source::Mock::Registry.new
  @registry.merge!(options, &block)
  @registry
end