voomify_tasks 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/run_psql.rb +2 -2
  2. metadata +3 -3
data/lib/run_psql.rb CHANGED
@@ -15,8 +15,8 @@ module RunPSQL
15
15
  password = config["password"]
16
16
  pipe_to_file = output_file ? "> #{output_file}" : ""
17
17
  variables = "-v PGPASSWORD=\"#{password}\" -v ON_ERROR_STOP=1"
18
- puts "Executing: #{command} -U #{username} #{host ? '-h '+host : ''} #{port ? '-p '+port : ''} #{database} #{pipe_to_file}"
19
- `#{command} #{variables} -U #{username} #{host ? '-h '+host : ''} #{port ? '-p '+port : ''} #{database} #{pipe_to_file}`
18
+ puts "Executing: #{command} -U #{username} #{host ? '-h '+host : ''} #{port ? '-p '+port.to_s : ''} #{database} #{pipe_to_file}"
19
+ `#{command} #{variables} -U #{username} #{host ? '-h '+host : ''} #{port ? '-p '+port.to_s : ''} #{database} #{pipe_to_file}`
20
20
  puts "exit status: #{$?.exitstatus}"
21
21
  if $?.exitstatus != 0
22
22
  raise "pg command failed"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voomify_tasks
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Russell Edens