Method: Xcode::RakeTask#initialize
- Defined in:
- lib/xcoder/rake_task.rb
#initialize(name = :xcode) {|_self| ... } ⇒ RakeTask
By default this will generate rake tasks within the ‘xcode’ namespace for all the projects (within the current working directory), all their targets, and all their configs. This will also generate tasks for all of a projects schemes as well.
The task accepts a single parameter. This parameter allows you to change the root namespace that the tasks are generated within.
Additionally a block can be specified to provide additional configuration:
Often you do not want to generate rake tasks for all the projects. So you can specify the names of the projects you do want to have appear.
107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/xcoder/rake_task.rb', line 107 def initialize(name = :xcode) @name = name yield self if block_given? define_all_projects_list_task define_project_list_tasks define_per_project_scheme_builder_tasks define_per_project_config_builder_tasks end |