Class: Vx::Message::PerformJob
- Inherits:
-
Object
- Object
- Vx::Message::PerformJob
- 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( = {}) .merge({ id: [:id] || 1, name: [:name] || 'evrone/test-repo', job_id: [:job_id] || 2, before_script: [:before_script] || 'echo before_script', script: [:script] || 'echo script', after_script: [:after_script] || 'echo after_script', matrix_keys: [:matrix_keys] || %w{ rvm:2.0.0 } }) end |
.test_message(options = {}) ⇒ Object
116 117 118 |
# File 'lib/vx/message/testing.rb', line 116 def ( = {}) new test_attributes() end |