Module: FPM::Fry::Plugin::Config

Defined in:
lib/fpm/fry/plugin/config.rb

Defined Under Namespace

Classes: Callback, DSL

Constant Summary collapse

IMPLICIT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Module.new
MARK_EXPLICIT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Module.new do
  def self.call(_, package)
    package.attributes[:fry_config_explicitly_used] = true
  end
end

Class Method Summary collapse

Class Method Details

.apply(builder, options = {}, &block) ⇒ Object



101
102
103
104
105
106
107
108
109
110
111
# File 'lib/fpm/fry/plugin/config.rb', line 101

def self.apply( builder, options = {}, &block )
  dsl = DSL.new(builder, options)
  if block
    if block.arity == 1
      yield dsl
    else
      dsl.instance_eval(&block)
    end
  end
  dsl
end