Class: RedisCopy::UI::AutoRun

Inherits:
Object
  • Object
show all
Defined in:
lib/redis-copy/ui/auto_run.rb

Instance Method Summary collapse

Instance Method Details

#abort(message = nil) ⇒ Object

Raises:

  • (RuntimeError)


12
13
14
# File 'lib/redis-copy/ui/auto_run.rb', line 12

def abort(message = nil)
  raise RuntimeError, message
end

#confirm?(prompt) ⇒ Boolean

Returns:

  • (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