voomify_tasks 0.1.8 → 0.1.9

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 +3 -0
  2. metadata +3 -3
data/lib/run_psql.rb CHANGED
@@ -16,5 +16,8 @@ module RunPSQL
16
16
  password = config["password"]
17
17
  pipe_to_file = output_file ? "> #{output_file}" : ""
18
18
  `export PGPASSWORD="#{password}";#{command} -U #{username} -h #{host} #{port ? '-p '+-port : ''} #{database} #{pipe_to_file};export PGPASSWORD=""`
19
+ if $?.exitstatus != 0
20
+ raise "pg command failed"
21
+ end
19
22
  end
20
23
  end
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 8
10
- version: 0.1.8
9
+ - 9
10
+ version: 0.1.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Russell Edens