Class: Vito::Dsl::Server
- Inherits:
-
Object
- Object
- Vito::Dsl::Server
- Defined in:
- lib/vito/dsl/server.rb
Instance Method Summary collapse
- #connection(type, options = {}) ⇒ Object
-
#initialize(args = []) ⇒ Server
constructor
A new instance of Server.
- #install(name, options = {}, &block) ⇒ Object
Constructor Details
#initialize(args = []) ⇒ Server
Returns a new instance of Server.
4 5 6 |
# File 'lib/vito/dsl/server.rb', line 4 def initialize(args = []) @args = args end |
Instance Method Details
#connection(type, options = {}) ⇒ Object
8 9 10 |
# File 'lib/vito/dsl/server.rb', line 8 def connection(type, = {}) @connection ||= Vito::Connection.new(type, ) end |
#install(name, options = {}, &block) ⇒ Object
12 13 14 |
# File 'lib/vito/dsl/server.rb', line 12 def install(name, = {}, &block) Vito::Dsl::Installation.new(name, , @connection).install(&block) end |