Squib.configure¶
Prior to the construction of a Squib::Deck, set a global default that overrides what is specified config.yml.
This is intended to be done prior to Squib::Deck.new, and is intended to be used inside of a Rakefile
Options¶
All options that are specified in Configuration Options
Exmaples¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # This is a sample Rakefile
require 'squib'
desc 'Build all decks black-and-white'
task default: [:characters, :skills]
desc 'Build all decks with color'
task color: [:with_color, :default]
desc 'Enable color build'
task :with_color do
puts "Enabling color build"
Squib.configure img_dir: 'color'
end
desc 'Build the character deck'
task :characters do
puts "Building characters"
load 'src/characters.rb'
end
desc 'Build the skills deck'
task :skills do
puts "Building skills"
load 'src/skills.rb'
end
|