Sha256: 762b4254c629a9e7b8902bb2c4772ce276cb57bcd57ee0162d9fd1513a2e4e0a

Contents?: true

Size: 407 Bytes

Versions: 4

Compression:

Stored size: 407 Bytes

Contents

Execute.define_task do
  desc "flushdb", "Flush data store - WARNING: THIS REMOVES ALL DATA IN RHOCONNECT"
  def flushdb
    invoke :config
    puts "*** WARNING: THIS WILL REMOVE ALL DATA FROM YOUR REDIS STORE ***"
    confirm = ask "Are you sure (please answer yes/no)? "
    if confirm == 'yes'
      RedisRunner.flushdb
      puts "Database flushed..."
    else
      puts "Aborted..."
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rhoconnect-3.4.5 commands/rhoconnect/flushdb.rb
rhoconnect-3.4.4 commands/rhoconnect/flushdb.rb
rhoconnect-3.4.3 commands/rhoconnect/flushdb.rb
rhoconnect-3.4.2 commands/rhoconnect/flushdb.rb