lib/tasks/pg_pull.rake in effective_developer-0.7.0 vs lib/tasks/pg_pull.rake in effective_developer-0.7.1

- old
+ new

@@ -97,10 +97,10 @@ env_keys = { database: ENV['DATABASE'], filename: ENV['FILENAME'] } keywords = ARGV.map { |a| a.split('=') if a.include?('=') }.compact.inject({}) { |h, (k, v)| h[k.to_sym] = v; h } args.with_defaults(defaults.compact.merge(env_keys.compact).merge(keywords)) # Validate filename - unless File.exists?(Rails.root + args.filename) + unless File.exist?(Rails.root + args.filename) puts "#{args.filename || none} does not exist"; exit end # Validate Config configs = ActiveRecord::Base.configurations.configs_for(env_name: Rails.env)