Class: Bard::CLI::CI::Local
- Inherits:
-
Struct
- Object
- Struct
- Bard::CLI::CI::Local
- Defined in:
- lib/bard/ci.rb
Instance Attribute Summary collapse
-
#last_response ⇒ Object
Returns the value of attribute last_response.
-
#project_name ⇒ Object
Returns the value of attribute project_name.
-
#sha ⇒ Object
Returns the value of attribute sha.
Instance Method Summary collapse
Instance Attribute Details
#last_response ⇒ Object
Returns the value of attribute last_response.
129 130 131 |
# File 'lib/bard/ci.rb', line 129 def last_response @last_response end |
#project_name ⇒ Object
Returns the value of attribute project_name
103 104 105 |
# File 'lib/bard/ci.rb', line 103 def project_name @project_name end |
#sha ⇒ Object
Returns the value of attribute sha
103 104 105 |
# File 'lib/bard/ci.rb', line 103 def sha @sha end |
Instance Method Details
#console ⇒ Object
125 126 127 |
# File 'lib/bard/ci.rb', line 125 def console @console end |
#exists? ⇒ Boolean
121 122 123 |
# File 'lib/bard/ci.rb', line 121 def exists? true end |
#run ⇒ Object
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/bard/ci.rb', line 104 def run start start_time = Time.new.to_i while building? elapsed_time = Time.new.to_i - start_time yield elapsed_time, nil sleep(2) end @stdin.close @console = @stdout_and_stderr.read @stdout_and_stderr.close success? end |