Module: Depend

Defined in:
lib/depend.rb,
lib/depend/version.rb,
lib/depend/register.rb,
lib/depend/dependent.rb,
lib/depend/installer.rb,
lib/depend/configuration.rb,
lib/depend/package_provider/apt.rb,
lib/depend/package_provider/common.rb,
lib/depend/package_provider/homebrew.rb

Defined Under Namespace

Modules: Dependent, PackageProvider Classes: Base, Configuration, InstallError, Installer, PlatformNotSupportedError, Register

Constant Summary collapse

VERSION =
"0.0.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



18
19
20
# File 'lib/depend.rb', line 18

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



26
27
28
29
# File 'lib/depend.rb', line 26

def self.configure
  puts "in configure"
  yield(configuration)
end

.registerObject



31
32
33
# File 'lib/depend.rb', line 31

def self.register
  @register_instance ||= Register.init_with_default_register
end

.reset_configurationObject



22
23
24
# File 'lib/depend.rb', line 22

def self.reset_configuration
  @configuration = Configuration.new
end