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.2.5 lib/dsl.rb
trafficbroker-mandy-0.2.6 lib/dsl.rb
trafficbroker-mandy-0.2.7 lib/dsl.rb
trafficbroker-mandy-0.2.8 lib/dsl.rb
trafficbroker-mandy-0.2 lib/dsl.rb
mandy-0.3.7 lib/dsl.rb
mandy-0.3.6 lib/dsl.rb
mandy-0.3.5 lib/dsl.rb
mandy-0.3.4 lib/dsl.rb
mandy-0.3.3 lib/dsl.rb
mandy-0.3.2 lib/dsl.rb
mandy-0.3.1 lib/dsl.rb
mandy-0.2.15 lib/dsl.rb
mandy-0.2.14 lib/dsl.rb