Class: Vito::Dsl::Installation
- Inherits:
-
Object
- Object
- Vito::Dsl::Installation
- Defined in:
- lib/vito/dsl/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
4 5 6 7 8 |
# File 'lib/vito/dsl/installation.rb', line 4 def initialize(name, , connection) @name = name.to_s = @connection = connection end |
Instance Method Details
#install ⇒ Object
10 11 12 |
# File 'lib/vito/dsl/installation.rb', line 10 def install "Vito::Recipes::#{@name.camelize}".constantize.new(, @connection).run end |