Class: HolePunch::ServiceDSL
Class Method Summary collapse
Instance Method Summary collapse
- #groups(*ids) ⇒ Object
-
#initialize(env, id) ⇒ ServiceDSL
constructor
A new instance of ServiceDSL.
Methods inherited from BaseDSL
Constructor Details
#initialize(env, id) ⇒ ServiceDSL
Returns a new instance of ServiceDSL.
50 51 52 |
# File 'lib/holepunch/dsl.rb', line 50 def initialize(env, id) super(env, Service.new(id)) end |
Class Method Details
.evaluate(env, *args, &block) ⇒ Object
46 47 48 |
# File 'lib/holepunch/dsl.rb', line 46 def self.evaluate(env, *args, &block) new(env, *args).eval_dsl(&block) end |
Instance Method Details
#groups(*ids) ⇒ Object
54 55 56 |
# File 'lib/holepunch/dsl.rb', line 54 def groups(*ids) @model.groups.concat(ids.flatten) end |