Class: Wox::BuildTasks

Inherits:
Object
  • Object
show all
Includes:
TasksScope
Defined in:
lib/wox/tasks.rb

Instance Attribute Summary

Attributes included from TasksScope

#environment, #parent_task

Instance Method Summary collapse

Methods included from TasksScope

#initialize

Instance Method Details

#ipa(name, options, &block) ⇒ Object



56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/wox/tasks.rb', line 56

def ipa name, options, &block
  environment.apply options.merge({:ipa_name => name}) do |e|
    t = nil
    namespace :ipa do
      desc "Creates #{e[:ipa_file]}"
      t = task(name => parent_task) { Packager.new(e).package }
    end
    
    tasks = IpaTasks.new(e, t)
    tasks.instance_eval &block if block_given?
  end
end