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

Version Path
rhoconnect-3.3.6 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.3.5 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.3.4 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.3.3 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.3.2 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.3.1 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.3.1.beta4 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.3.1.beta3 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.3.1.beta2 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.2.1 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.2.0 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.2.0.beta5 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.2.0.beta4 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.2.0.beta3 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.2.0.beta2 commands/commands/rhoconnect/flushdb.rb
rhoconnect-3.2.0.beta1 commands/commands/rhoconnect/flushdb.rb