Class: Build
- Inherits:
-
Object
- Object
- Build
- Defined in:
- lib/tasks/cia.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Class Method Summary collapse
Instance Method Summary collapse
- #author ⇒ Object
- #commit_message ⇒ Object
- #has_changes? ⇒ Boolean
- #revision ⇒ Object
- #run ⇒ Object
- #tests_ok? ⇒ Boolean
- #url ⇒ Object
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
17 18 19 |
# File 'lib/tasks/cia.rb', line 17 def output @output end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
17 18 19 |
# File 'lib/tasks/cia.rb', line 17 def status @status end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
17 18 19 |
# File 'lib/tasks/cia.rb', line 17 def success @success end |
Class Method Details
.run ⇒ Object
19 20 21 |
# File 'lib/tasks/cia.rb', line 19 def self.run Build.new.run end |
Instance Method Details
#author ⇒ Object
40 41 42 |
# File 'lib/tasks/cia.rb', line 40 def info['Last Changed Author'] end |
#commit_message ⇒ Object
36 37 38 |
# File 'lib/tasks/cia.rb', line 36 def `svn log #{ROOT} -rHEAD` end |
#has_changes? ⇒ Boolean
49 50 51 52 |
# File 'lib/tasks/cia.rb', line 49 def has_changes? update if @status.nil? @status =~ /[A-Z]\s+[\w\/]+/ end |
#revision ⇒ Object
28 29 30 |
# File 'lib/tasks/cia.rb', line 28 def revision info['Revision'].to_i end |
#run ⇒ Object
23 24 25 26 |
# File 'lib/tasks/cia.rb', line 23 def run update if @status.nil? make if @success.nil? end |
#tests_ok? ⇒ Boolean
44 45 46 47 |
# File 'lib/tasks/cia.rb', line 44 def tests_ok? run if @success.nil? @success == true end |
#url ⇒ Object
32 33 34 |
# File 'lib/tasks/cia.rb', line 32 def url info['URL'] end |