Sha256: d89ebca77b669cc905e2b5dc4fe8107e4c1ac1862df6eec8b0731cda6645220b

Contents?: true

Size: 860 Bytes

Versions: 4

Compression:

Stored size: 860 Bytes

Contents

# -*- encoding : utf-8 -*-

namespace :db do
  namespace :guacamole do
    desc "Purges all the collections of the database for the current environment"
    task :purge => :environment do
      puts "[ARANGODB] Purging all data from database '#{Guacamole.configuration.database.name}' ..."
      Guacamole.configuration.database.truncate
    end

    desc "Drops all the collections of the database for the current environment"
    task :drop => :environment do
      puts "[ARANGODB] Dropping the database '#{Guacamole.configuration.database.name}' ..."
      Guacamole.configuration.database.drop
    end

    desc "Create the database for the current environment"
    task :create => :environment do
      puts "[ARANGODB] Creating the database '#{Guacamole.configuration.database.name}' ..."
      Guacamole.configuration.database.create
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
guacamole-0.4.0 lib/guacamole/tasks/database.rake
guacamole-0.3.0 lib/guacamole/tasks/database.rake
guacamole-0.2.0 lib/guacamole/tasks/database.rake
guacamole-0.1.0 lib/guacamole/tasks/database.rake