Class: RMonitor::Profile::Builder
- Inherits:
-
Object
- Object
- RMonitor::Profile::Builder
- Defined in:
- lib/rmonitor/profile/builder.rb
Class Method Summary collapse
Class Method Details
.define(name, options = {}, &block) ⇒ Object
7 8 9 10 11 |
# File 'lib/rmonitor/profile/builder.rb', line 7 def define(name, = {}, &block) dsl = RMonitor::Profile::DSL.new dsl.instance_eval &block .merge :name => name, :devices => dsl.devices end |