Module: FPM::Fry::Plugin::Service
- Defined in:
- lib/fpm/fry/plugin/service.rb
Defined Under Namespace
Classes: DSL, Environment
Constant Summary collapse
- LIMITS =
%w(core cpu data fsize memlock msgqueue nice nofile nproc rss rtprio sigpending stack)
Class Method Summary collapse
Class Method Details
.apply(builder, &block) ⇒ Object
208 209 210 211 212 213 214 215 216 217 218 219 |
# File 'lib/fpm/fry/plugin/service.rb', line 208 def self.apply(builder, &block) d = DSL.new(builder.name) if !block raise ArgumentError, "service plugin requires a block" elsif block.arity == 1 block.call(d) else d.instance_eval(&block) end d.add!(builder) return nil end |