Module: BubbleWrap::Ext::BuildTask

Defined in:
lib/bubble-wrap/ext/motion_project_app.rb

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/bubble-wrap/ext/motion_project_app.rb', line 5

def self.extended(base)
  base.instance_eval do
    def setup_with_bubblewrap(*args, &block)
      bw_config = proc do |app|
        ::BubbleWrap.before_config(app)
        block.call(app) unless block.nil?
      end

      setup_without_bubblewrap *args, &bw_config
    end
    alias :setup_without_bubblewrap :setup
    alias :setup :setup_with_bubblewrap
  end
end