Sha256: fd1aaf13074c1262e307c66271093ed8c9bae6aeb774c5d1d97dae8107303f61

Contents?: true

Size: 937 Bytes

Versions: 5

Compression:

Stored size: 937 Bytes

Contents

$: << File.join(File.dirname(__FILE__), '../../lib')
require 'dump_rake'

desc "Short for dump:create" << DumpRake::Env.explain_variables_for_command(:create)
task :dump => 'dump:create'

namespace :dump do
  desc "Show avaliable versions" << DumpRake::Env.explain_variables_for_command(:versions)
  task :versions => :environment do
    DumpRake.versions(DumpRake::Env.for_command(:versions))
  end

  desc "Create dump" << DumpRake::Env.explain_variables_for_command(:create)
  task :create => :environment do
    DumpRake.create(DumpRake::Env.for_command(:create))
  end

  desc "Restore dump" << DumpRake::Env.explain_variables_for_command(:restore)
  task :restore => :environment do
    DumpRake.restore(DumpRake::Env.for_command(:restore))
  end

  desc "Cleanup dumps" << DumpRake::Env.explain_variables_for_command(:cleanup)
  task :cleanup => :environment do
    DumpRake.cleanup(DumpRake::Env.for_command(:cleanup))
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dump-1.0.4 lib/tasks/dump.rake
dump-1.0.3 lib/tasks/dump.rake
dump-1.0.2 lib/tasks/dump.rake
dump-1.0.1 lib/tasks/dump.rake
dump-1.0.0 lib/tasks/dump.rake