Class: IosBox::Tasks

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/ios_box.rb

Defined Under Namespace

Classes: Config

Instance Method Summary collapse

Constructor Details

#initialize(namespace = :iosbox) {|@config| ... } ⇒ Tasks

Returns a new instance of Tasks.

Yields:

  • (@config)


12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/ios_box.rb', line 12

def initialize(namespace = :iosbox, &block)
  @config = Config.new(
    :configuration => "Adhoc",
    :build_style => :months,
    :bundle_version_style => "V.b",
    :buildCache => ".buildCache"
  )
  yield @config
  
  # Load build cache
  @buildCache = BuildCache.load(@config.buildCache) || BuildCache.new
  @buildCache.init(@config)
  
  @namespace = namespace
  define
end