Spooner/relapse — Issue #3: Set task-specific options in #add_output
Author: Spooner
Created: 2012-01-15 02:31:42+00:00
State: open

Current:

p.add_output :osx_app
p.add_output :win32_folder
p.add_output :win32_installer

# Settings for specific outputs.
p.win32_installer_group = "Spooner Games"
p.osx_app_url = "com.github.spooner.games.alpha_channel"
p.osx_app_wrapper = "../osx_app/RubyGosu App.app"
p.osx_app_gems = Bundler.definition.specs_for([:default]) # Don't want :development gems.

Blocks (I really don't like instance-eval):

p.add_output :osx_app do |o|
o.url = "com.github.spooner.games.alpha_channel"
o.wrapper = "../osx_app/RubyGosu App.app"
o.gems = Bundler.definition.specs_for([:default]) # Don't want :development gems.
end

p.add_output :win32_installer do |o|
o.group = "Spooner Games"
end

Or Hashes:

p.add_output :osx_app, url: "com.github.spooner.games.alpha_channel",
wrapper: "../osx_app/RubyGosu App.app",
gems: Bundler.definition.specs_for([:default]) # Don't want :development gems.

p.add_output :win32_installer, group: "Spooner Games"