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-4.0.0.beta.24 | commands/rhoconnect/flushdb.rb |
rhoconnect-4.0.0.beta.10 | commands/rhoconnect/flushdb.rb |
rhoconnect-4.0.0.beta.12 | commands/rhoconnect/flushdb.rb |