Class: Kdeploy::SilentOutput
Overview
Silent output for testing
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
- #clear ⇒ Object
-
#initialize ⇒ SilentOutput
constructor
A new instance of SilentOutput.
- #write(message) ⇒ Object
- #write_error(message) ⇒ Object
- #write_line(message) ⇒ Object
Constructor Details
#initialize ⇒ SilentOutput
Returns a new instance of SilentOutput.
54 55 56 57 58 |
# File 'lib/kdeploy/output.rb', line 54 def initialize super = [] @errors = [] end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
52 53 54 |
# File 'lib/kdeploy/output.rb', line 52 def errors @errors end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
52 53 54 |
# File 'lib/kdeploy/output.rb', line 52 def end |
Instance Method Details
#clear ⇒ Object
73 74 75 76 |
# File 'lib/kdeploy/output.rb', line 73 def clear .clear @errors.clear end |
#write(message) ⇒ Object
60 61 62 |
# File 'lib/kdeploy/output.rb', line 60 def write() << end |
#write_error(message) ⇒ Object
68 69 70 71 |
# File 'lib/kdeploy/output.rb', line 68 def write_error() @errors << << "#{message}\n" end |
#write_line(message) ⇒ Object
64 65 66 |
# File 'lib/kdeploy/output.rb', line 64 def write_line() << "#{message}\n" end |