Class: CheckResult

Inherits:
Object
  • Object
show all
Defined in:
lib/local_dsl.rb

Instance Method Summary collapse

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(message = nil)
  Local.type_check nil, message, String if message
  # NOT yielding here. Check blocks contain code
  # that works only on remote target.
  CheckResult.new(false)
end

#fixObject



160
161
162
# File 'lib/local_dsl.rb', line 160

def fix
  yield
end