prick 0.20.5 → 0.20.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prick/version.rb +1 -1
- data/lib/subcommand/prick-drop.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ab5f6fc19173d14d2e5e39dd510eceafa346e402dbab8c0e04b48be623b4fae
|
4
|
+
data.tar.gz: 19a7d2c7fc9e19041c75cee34fdc91267c74f7573a93361bfa90aeafcb2fbe6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5ecd95bed34a3cbfc5e0a246cfb29171063f433d5d9d1edd9c05fe2df5758518575ebb182996c4ae3e97faab46c4adce120eea4538ee83ebacbd829a21561c5
|
7
|
+
data.tar.gz: 5edb4eb6faaa5cc15480aa18dfe11d425edb1051408d61aea44e957691da98a51d89d5bee41106dd9f5c8a31ed073820e048ff558a69027f764a036acbe5fe9b
|
data/lib/prick/version.rb
CHANGED
@@ -4,18 +4,18 @@ require 'builder/builder.rb'
|
|
4
4
|
|
5
5
|
module Prick::SubCommand
|
6
6
|
def self.drop_users(database)
|
7
|
-
PgConn.new(postgres) { |conn|
|
7
|
+
PgConn.new("postgres") { |conn|
|
8
8
|
users = conn.role.list(database: database)
|
9
9
|
conn.role.drop(users, cascade: true)
|
10
10
|
}
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.drop_database(database)
|
14
|
-
PgConn.new(postgres) { |conn| conn.rdbms.drop database }
|
14
|
+
PgConn.new("postgres") { |conn| conn.rdbms.drop database }
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.drop_all(database)
|
18
|
-
PgConn.new(postgres) { |conn|
|
18
|
+
PgConn.new("postgres") { |conn|
|
19
19
|
users = conn.role.list(database: database)
|
20
20
|
PgConn.new(database) { |db| db.role.drop(users, cascade: true) }
|
21
21
|
conn.rdbms.drop database
|