Class: Vito::Installation
- Inherits:
-
Object
- Object
- Vito::Installation
- Defined in:
- lib/vito/installation.rb
Instance Method Summary collapse
-
#initialize(name, options, connection) ⇒ Installation
constructor
A new instance of Installation.
- #install ⇒ Object
Constructor Details
#initialize(name, options, connection) ⇒ Installation
Returns a new instance of Installation.
3 4 5 6 7 |
# File 'lib/vito/installation.rb', line 3 def initialize(name, , connection) @name = name.to_s @options = @connection = connection end |
Instance Method Details
#install ⇒ Object
9 10 11 |
# File 'lib/vito/installation.rb', line 9 def install "Vito::Recipes::#{@name.camelize}".constantize.new(@options, @connection).run end |