module FPM::Fry::Plugin::EditStaging
A plugin to edit the final build results. @example Add a file
plugin 'edit_staging' do add_file '/a_file', 'some content' end
Public Class Methods
apply(builder, &block)
click to toggle source
@yield [dsl] @yieldparam [DSL] dsl @return [DSL]
# File lib/fpm/fry/plugin/edit_staging.rb, line 77 def self.apply(builder, &block) d = DSL.new(builder) if !block return d elsif block.arity == 1 block.call(d) else d.instance_eval(&block) end return d end