Sha256: 299c607fbaddeb206fc2cf99a496384897c15984143f2b7218ee05049be5f9e9

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

require 'rails/railtie'

module HerokuPull
  class Railtie < Rails::Railtie
    rake_tasks do
      namespace :heroku do
        desc "Pull the Postgres database from Heroku into local server"
        task :pull do
          HerokuPull.app_name = ENV['APP']
          HerokuPull.capture
          HerokuPull.download
          HerokuPull.restore
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
heroku_pull-0.0.3 lib/heroku_pull/railtie.rb
heroku_pull-0.0.2 lib/heroku_pull/railtie.rb