Sha256: 7900fc75c21cf470d5daad4fb19300896a9f852b664b71f66b506ebd2ae3cfe0

Contents?: true

Size: 185 Bytes

Versions: 34

Compression:

Stored size: 185 Bytes

Contents

module Mandy
  module DSL
    def job(name, &blk)
      job = Mandy::Job.new(name)
      job.instance_eval(&blk) unless blk.nil?
      Mandy::Job.jobs << job
      job
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
trafficbroker-mandy-0.1.2 lib/dsl.rb
trafficbroker-mandy-0.1.3 lib/dsl.rb
trafficbroker-mandy-0.1.5 lib/dsl.rb
trafficbroker-mandy-0.1.6 lib/dsl.rb
trafficbroker-mandy-0.1.7 lib/dsl.rb
trafficbroker-mandy-0.1.8 lib/dsl.rb
trafficbroker-mandy-0.1.9 lib/dsl.rb
trafficbroker-mandy-0.2.10 lib/dsl.rb
trafficbroker-mandy-0.2.11 lib/dsl.rb
trafficbroker-mandy-0.2.12 lib/dsl.rb
trafficbroker-mandy-0.2.13 lib/dsl.rb
trafficbroker-mandy-0.2.2 lib/dsl.rb
trafficbroker-mandy-0.2.3 lib/dsl.rb
trafficbroker-mandy-0.2.4.2 lib/dsl.rb
trafficbroker-mandy-0.2.4.3 lib/dsl.rb
trafficbroker-mandy-0.2.4.4 lib/dsl.rb
trafficbroker-mandy-0.2.4.5 lib/dsl.rb
trafficbroker-mandy-0.2.4.6 lib/dsl.rb
trafficbroker-mandy-0.2.4 lib/dsl.rb
trafficbroker-mandy-0.2.5.1 lib/dsl.rb