Sha256: e5c1df87b0760f79f6f1e754028d9cf9b45c998264c868d3d2c2457b79953435
Contents?: true
Size: 690 Bytes
Versions: 6
Compression:
Stored size: 690 Bytes
Contents
rule /\#.*/ do |t| env = t.name.match(/\#.*/).to_s.gsub("#", "") Mack::Configuration.set(:env, env) name = t.name.gsub("##{env}", "") Rake::Task[name].invoke end rule /^cachetastic:/ do |t| x = t.name.gsub("cachetastic:", '') x = x.split(":") cache_name = x.first cache_action = x.last puts "cache_name: #{cache_name}" puts "cache_action: #{cache_action}" ENV['cache_name'] = cache_name ENV['cache_action'] = cache_action Rake::Task["cachetastic:manipulate_caches"].invoke end rule /^generate:/ do |t| klass = t.name.gsub("generate:", '') Rake::Task["environment"].invoke klass = "#{klass.camelcase}Generator" gen = klass.constantize.run(ENV.to_hash) end
Version data entries
6 entries across 6 versions & 1 rubygems