Class: SetUpDevelopment::Registry

Inherits:
Object
  • Object
show all
Defined in:
lib/set_up_development/registry.rb

Constant Summary collapse

DEFAULT_REGISTRY =
File.expand_path("../../registry", __FILE__).freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.installersObject (readonly)

Returns the value of attribute installers.



10
11
12
# File 'lib/set_up_development/registry.rb', line 10

def installers
  @installers
end

Class Method Details

.add_installer!(installer_name, check_install_proc, install_proc) ⇒ Object



12
13
14
15
# File 'lib/set_up_development/registry.rb', line 12

def add_installer!(installer_name, check_install_proc, install_proc)
  installer = Installer.new(check_install_proc, install_proc)
  @installers.merge!({ installer_name => installer })
end