Module: BubbleWrap::Ext::BuildTask

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

Class Method Summary (collapse)

Class Method Details

+ (Object) extended(base)



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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|
        app.files = ::BubbleWrap::Requirement.files(app.files)
        app.files_dependencies ::BubbleWrap::Requirement.files_dependencies
        app.frameworks = ::BubbleWrap::Requirement.frameworks(app.frameworks)
        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