Class: Assemblyline::Ruby::Installer

Inherits:
Object
  • Object
show all
Defined in:
lib/assemblyline/ruby/installer.rb

Instance Method Summary collapse

Constructor Details

#initialize(provider = nil) ⇒ Installer

Returns a new instance of Installer.



7
8
9
# File 'lib/assemblyline/ruby/installer.rb', line 7

def initialize(provider = nil)
  @provider = provider || Provider.provider
end

Instance Method Details

#installObject



11
12
13
14
15
# File 'lib/assemblyline/ruby/installer.rb', line 11

def install
  provider.install
  yield
  provider.remove
end