filbert 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/filbert/task.rb +1 -1
- data/lib/filbert/version.rb +1 -1
- metadata +2 -2
data/lib/filbert/task.rb
CHANGED
@@ -54,7 +54,7 @@ module Filbert
|
|
54
54
|
user = db_config.username
|
55
55
|
|
56
56
|
ENV['PGPASSWORD'] = db_config.password
|
57
|
-
sql = "SELECT pg_terminate_backend(
|
57
|
+
sql = "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE pid <> pg_backend_pid();"
|
58
58
|
run! "echo \"#{sql}\" | psql -d #{database} -U #{user}"
|
59
59
|
say "Killed connections to #{database} as #{user}"
|
60
60
|
ensure
|
data/lib/filbert/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filbert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-02-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: heroku
|