lib/pg_dumper.rb in pg_dumper-0.1.0 vs lib/pg_dumper.rb in pg_dumper-0.1.1
- old
+ new
@@ -6,13 +6,14 @@
require 'pg_dumper/railtie' if defined?(Rails)
attr_reader :database
attr_reader :output
- def initialize database
+ def initialize database, binary = nil
@database = database
@args = []
@options = {}
+ @binary = binary
end
def run(mode = :silent)
raise "ERROR: pg_dump executable not found" unless binary