Class: Librarian::Mock::Environment
- Inherits:
-
Environment
- Object
- Environment
- Librarian::Mock::Environment
- Defined in:
- lib/librarian/mock/environment.rb
Instance Attribute Summary
Attributes inherited from Environment
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
Constructor Details
This class inherits a constructor from Librarian::Environment
Instance Method Details
#registry(options = nil, &block) ⇒ Object
15 16 17 18 19 |
# File 'lib/librarian/mock/environment.rb', line 15 def registry( = nil, &block) @registry ||= Source::Mock::Registry.new @registry.merge!(, &block) @registry end |
#ui ⇒ Object
11 12 13 |
# File 'lib/librarian/mock/environment.rb', line 11 def ui Librarian::UI::Shell.new(Thor::Shell::Basic.new) end |