Module: RedisCopy::UI

Extended by:
Implements::Interface
Defined in:
lib/redis-copy/ui.rb,
lib/redis-copy/ui/auto_run.rb,
lib/redis-copy/ui/command_line.rb

Defined Under Namespace

Classes: AutoRun, CommandLine

Instance Method Summary collapse

Instance Method Details

#abort(message = nil) ⇒ Object

Raises:

  • (NotImplementedError)


16
17
18
19
# File 'lib/redis-copy/ui.rb', line 16

def abort(message = nil)
  return super if defined?(super)
  raise NotImplementedError
end

#confirm?(prompt) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


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

def confirm?(prompt)
  return super if defined?(super)
  raise NotImplementedError
end

#debug(message) ⇒ Object



26
27
28
# File 'lib/redis-copy/ui.rb', line 26

def debug(message)
  notify(message) if @options[:debug]
end

#initialize(options) ⇒ Object



7
8
9
# File 'lib/redis-copy/ui.rb', line 7

def initialize(options)
  @options = options
end

#notify(message) ⇒ Object

Raises:

  • (NotImplementedError)


21
22
23
24
# File 'lib/redis-copy/ui.rb', line 21

def notify(message)
  return super if defined?(super)
  raise NotImplementedError
end