Sha256: acaa5e1a03a31f75e82ed7b2c652db8b3ded721c6ae1037ef72c5b6745189545

Contents?: true

Size: 687 Bytes

Versions: 17

Compression:

Stored size: 687 Bytes

Contents

namespace :decko do
  namespace :tmpsets do
    # We have to load the environment with `env REPO_TMPSETS=true` in
    # development mode to trigger the tmpset generation.
    # There's probably a more elegant way?
    task :trigger do
      ENV["REPO_TMPSETS"] = "true"
      Rake::Task["decko:tmpsets:dummy"].invoke
    end

    # just load environment and trigger Card load
    task dummy: :environment do
      Card
    end

    task :copy do
      require "fileutils"
      require "cardio"

      target = "#{Cardio.gem_root}/tmpsets"
      FileUtils.rm_r Dir["#{target}/set*"]
      FileUtils.cp_r Dir["#{Cardio.root}/tmpsets/set*"], "#{Cardio.gem_root}/tmpsets"
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
decko-0.14.2 lib/rake_tasks/decko/tmpsets.rake
decko-0.14.1 lib/rake_tasks/decko/tmpsets.rake
decko-0.14.0 lib/rake_tasks/decko/tmpsets.rake
decko-0.13.4 lib/rake_tasks/decko/tmpsets.rake
decko-0.13.3 lib/rake_tasks/decko/tmpsets.rake
decko-0.13.2 lib/decko/tasks/decko/tmpsets.rake
decko-0.13.1 lib/decko/tasks/decko/tmpsets.rake
decko-0.13.0 lib/decko/tasks/decko/tmpsets.rake
decko-0.11.7 lib/decko/tasks/decko/tmpsets.rake
decko-0.12.0 lib/decko/tasks/decko/tmpsets.rake
decko-0.11.6 lib/decko/tasks/decko/tmpsets.rake
decko-0.11.5 lib/decko/tasks/decko/tmpsets.rake
decko-0.11.4 lib/decko/tasks/decko/tmpsets.rake
decko-0.11.3 lib/decko/tasks/decko/tmpsets.rake
decko-0.11.2 lib/decko/tasks/decko/tmpsets.rake
decko-0.11.1 lib/decko/tasks/decko/tmpsets.rake
decko-0.11.0 lib/decko/tasks/decko/tmpsets.rake