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
138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/fpm/fry/plugin/service.rb', line 138 def self.apply(builder, &block) d = DSL.new 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 |