Class: Vx::Message::PerformJob

Inherits:
Object
  • Object
show all
Includes:
Beefcake::Message
Defined in:
lib/vx/message/testing.rb,
lib/vx/message/messages.pb.rb

Class Method Summary collapse

Class Method Details

.test_attributes(options = {}) ⇒ Object



49
50
51
52
53
54
55
56
57
58
59
# File 'lib/vx/message/testing.rb', line 49

def test_attributes(options = {})
  options.merge({
    project_id:    options[:project_id]    || 1,
    build_id:      options[:build_id]      || 1,
    name:          options[:name]          || 'evrone/test-repo',
    job_id:        options[:job_id]        || 2,
    before_script: options[:before_script] || 'echo before_script',
    script:        options[:script]        || 'echo script',
    after_script:  options[:after_script]  || 'echo after_script'
  })
end

.test_message(options = {}) ⇒ Object



61
62
63
# File 'lib/vx/message/testing.rb', line 61

def test_message(options = {})
  new test_attributes(options)
end