Sha256: 9718905b373234a9ed4e412840fdd68433516b20fc8b8aaa329f7e2b11e523b6

Contents?: true

Size: 331 Bytes

Versions: 15

Compression:

Stored size: 331 Bytes

Contents

require "wrapbox"

namespace :wrapbox do
  desc "Run Wrapbox"
  task :run do
    Rake::Task["environment"].invoke if defined?(Rails)

    if ENV[Wrapbox::CLASS_NAME_ENV] && ENV[Wrapbox::METHOD_NAME_ENV] && ENV[Wrapbox::METHOD_ARGS_ENV]
      Wrapbox::Job.perform
    else
      raise "Wrapbox ENVs are not found"
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wrapbox-0.10.0 lib/wrapbox/tasks/run.rake
wrapbox-0.9.0 lib/wrapbox/tasks/run.rake
wrapbox-0.8.2 lib/wrapbox/tasks/run.rake
wrapbox-0.8.1 lib/wrapbox/tasks/run.rake
wrapbox-0.8.0 lib/wrapbox/tasks/run.rake
wrapbox-0.7.0 lib/wrapbox/tasks/run.rake
wrapbox-0.6.0 lib/wrapbox/tasks/run.rake
wrapbox-0.5.2 lib/wrapbox/tasks/run.rake
wrapbox-0.5.1 lib/wrapbox/tasks/run.rake
wrapbox-0.5.0 lib/wrapbox/tasks/run.rake
wrapbox-0.4.1 lib/wrapbox/tasks/run.rake
wrapbox-0.4.0 lib/wrapbox/tasks/run.rake
wrapbox-0.3.0 lib/wrapbox/tasks/run.rake
wrapbox-0.2.0 lib/wrapbox/tasks/run.rake
wrapbox-0.1.0 lib/wrapbox/tasks/run.rake