lib/xcake/dsl/target/sugar.rb in xcake-0.8.6 vs lib/xcake/dsl/target/sugar.rb in xcake-0.8.7

- old
+ new

@@ -15,9 +15,28 @@ build_phases << phase phase end # Creates a new Shell Script build phase for the + # target before all of the other build phases + # + # @param [String] name + # the name to use for the build phase + # + # @param [Proc] block + # an optional block that configures the build phase through the DSL. + # + # @return [ShellScriptBuildPhase] the new xcode build phase + # + def pre_shell_script_build_phase(name, script, &block) + phase = ShellScriptBuildPhase.new(&block) + phase.name = name + phase.script = script + pinned_build_phases << phase + phase + end + + # Creates a new Shell Script build phase for the # target # # @param [String] name # the name to use for the build phase #