Skip to content
Browse files

Ensure we join back to a string for the command.

  • Loading branch information...
1 parent 045b1a5 commit 9f6f582d12db35dd3c7235cd97113120aa8be9dd @wayneeseguin committed
Showing with 4 additions and 3 deletions.
  1. +3 −2 lib/psql-cm/dump.rb
  2. +1 −1 lib/psql-cm/setup.rb
View
5 lib/psql-cm/dump.rb
@@ -15,8 +15,9 @@ def dump!
cm_file = File.join(sql_path,database,"#{schema}.sql")
sh %W[ pg_dump #{db(database).psql_args} --no-privileges --no-owner
- --schema=#{schema} --file=#{cm_file} --table=#{schema}.#{config.cm_table}
- #{database} ].join(' ')
+ --schema=#{schema} --file=#{cm_file}
+ --table=#{schema}.#{config.cm_table} #{database}
+ ].join(' ')
end
end
View
2 lib/psql-cm/setup.rb
@@ -11,7 +11,7 @@ def setup!
sh %W[ pg_dump #{db(database).psql_args}
--schema-only --no-owner --no-privileges
--schema=#{schema} --file=#{temp_file.path} #{database}
- ]
+ ].join(' ')
content = %x{cat #{temp_file.path}}
name = %x{git config user.name}.strip

0 comments on commit 9f6f582

Please sign in to comment.
Something went wrong with that request. Please try again.