Sha256: 287ed94e353d553f1d9b86b2ebc31873f33d397282294f710a110df789be3d72
Contents?: true
Size: 422 Bytes
Versions: 16
Compression:
Stored size: 422 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' Redis.new.flushdb puts "Database flushed..." else puts "Aborted..." end #if end #flushdb end #do
Version data entries
16 entries across 16 versions & 1 rubygems