Class: CheckResult
- Inherits:
-
Object
- Object
- CheckResult
- Defined in:
- lib/local_dsl.rb
Instance Method Summary collapse
- #check(message = nil) ⇒ Object
- #fix ⇒ Object
-
#initialize(result) ⇒ CheckResult
constructor
A new instance of CheckResult.
Constructor Details
#initialize(result) ⇒ CheckResult
Returns a new instance of CheckResult.
157 158 159 |
# File 'lib/local_dsl.rb', line 157 def initialize(result) @result = result end |
Instance Method Details
#check(message = nil) ⇒ Object
163 164 165 166 167 168 |
# File 'lib/local_dsl.rb', line 163 def check( = nil) Local.type_check nil, , String if # NOT yielding here. Check blocks contain code # that works only on remote target. CheckResult.new(false) end |
#fix ⇒ Object
160 161 162 |
# File 'lib/local_dsl.rb', line 160 def fix yield end |