Sha256: d733b6f7df53400741de68cf594a6864eb5714eef2254e65cf75f71302f59175

Contents?: true

Size: 359 Bytes

Versions: 23

Compression:

Stored size: 359 Bytes

Contents

require 'yaml'

def create(who, *args)

  options = args.last.is_a?(Hash) ? args.pop : {}

  case who

  when :message
    name  = args.shift
    klass = Evrone::CI::Message.const_get name
    klass.test_message options

  when :job
    message = options[:message] || create(:message, 'PerformJob', options)
    Evrone::CI::Worker::Job.new message

  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
evrone-ci-worker-0.2.0.pre28 spec/support/create.rb
evrone-ci-worker-0.2.0.pre27 spec/support/create.rb
evrone-ci-worker-0.2.0.pre26 spec/support/create.rb
evrone-ci-worker-0.2.0.pre25 spec/support/create.rb
evrone-ci-worker-0.2.0.pre24 spec/support/create.rb
evrone-ci-worker-0.2.0.pre23 spec/support/create.rb
evrone-ci-worker-0.2.0.pre22 spec/support/create.rb
evrone-ci-worker-0.2.0.pre21 spec/support/create.rb
evrone-ci-worker-0.2.0.pre20 spec/support/create.rb
evrone-ci-worker-0.2.0.pre19 spec/support/create.rb
evrone-ci-worker-0.2.0.pre18 spec/support/create.rb
evrone-ci-worker-0.2.0.pre17 spec/support/create.rb
evrone-ci-worker-0.2.0.pre15 spec/support/create.rb
evrone-ci-worker-0.2.0.pre14 spec/support/create.rb
evrone-ci-worker-0.2.0.pre13 spec/support/create.rb
evrone-ci-worker-0.2.0.pre12 spec/support/create.rb
evrone-ci-worker-0.2.0.pre11 spec/support/create.rb
evrone-ci-worker-0.2.0.pre10 spec/support/create.rb
evrone-ci-worker-0.2.0.pre9 spec/support/create.rb
evrone-ci-worker-0.2.0.pre8 spec/support/create.rb