Class: RedisCopy::UI::AutoRun
- Inherits:
-
Object
- Object
- RedisCopy::UI::AutoRun
show all
- Includes:
- RedisCopy::UI
- Defined in:
- lib/redis-copy/ui/auto_run.rb
Instance Method Summary
collapse
#debug, #initialize, load
Instance Method Details
#abort(message = nil) ⇒ Object
12
13
14
|
# File 'lib/redis-copy/ui/auto_run.rb', line 12
def abort(message = nil)
raise RuntimeError, message
end
|
#confirm?(prompt) ⇒ Boolean
8
9
10
11
|
# File 'lib/redis-copy/ui/auto_run.rb', line 8
def confirm?(prompt)
$stderr.puts(prompt)
true
end
|
#notify(message) ⇒ Object
15
16
17
|
# File 'lib/redis-copy/ui/auto_run.rb', line 15
def notify(message)
$stderr.puts(message)
end
|