Sha256: ddb72ea3194787aab8f1911fc373615c351b953b500e0968f93862a222f4e5b2

Contents?: true

Size: 404 Bytes

Versions: 23

Compression:

Stored size: 404 Bytes

Contents

Execute.define_task do
  desc "flushdb", "Flush data store - WARNING: THIS REMOVES ALL DATA IN RHOCONNECT"
  def flushdb
    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(config[:redis])
      puts "Database flushed..."
    else
      puts "Aborted..."
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 commands/rhoconnect/flushdb.rb
rhoconnect-7.5.1 commands/rhoconnect/flushdb.rb
rhoconnect-7.4.1 commands/rhoconnect/flushdb.rb
rhoconnect-7.1.17 commands/rhoconnect/flushdb.rb
rhoconnect-6.2.0 commands/rhoconnect/flushdb.rb
rhoconnect-6.0.11 commands/rhoconnect/flushdb.rb
rhoconnect-5.5.18 commands/rhoconnect/flushdb.rb
rhoconnect-5.5.17 commands/rhoconnect/flushdb.rb
rhoconnect-5.5.15 commands/rhoconnect/flushdb.rb
rhoconnect-5.5.0.22 commands/rhoconnect/flushdb.rb
rhoconnect-5.5.2 commands/rhoconnect/flushdb.rb
rhoconnect-5.5.0.7 commands/rhoconnect/flushdb.rb
rhoconnect-5.5.0.3 commands/rhoconnect/flushdb.rb
rhoconnect-5.5.0 commands/rhoconnect/flushdb.rb
rhoconnect-5.1.1 commands/rhoconnect/flushdb.rb
rhoconnect-4.0.4 commands/rhoconnect/flushdb.rb
rhoconnect-4.0.3 commands/rhoconnect/flushdb.rb
rhoconnect-4.0.2 commands/rhoconnect/flushdb.rb
rhoconnect-4.0.1 commands/rhoconnect/flushdb.rb
rhoconnect-4.0.0 commands/rhoconnect/flushdb.rb