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



104
105
106
107
108
109
110
111
112
113
114
# File 'lib/vx/message/testing.rb', line 104

def test_attributes(options = {})
  options.merge({
    id:            options[: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',
    matrix_keys:   options[:matrix_keys]   || %w{ rvm:2.0.0 }
  })
end

.test_message(options = {}) ⇒ Object



116
117
118
# File 'lib/vx/message/testing.rb', line 116

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