prick 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prick/database.rb +0 -2
- data/lib/prick/program.rb +1 -1
- data/lib/prick/rdbms.rb +0 -11
- data/lib/prick/schema.rb +1 -1
- data/lib/prick/version.rb +1 -1
- 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: dd62ad39d6f79354d9eb4e68e102cbe2fa45c3c83f3bb670bb67cc91faab2b6c
|
4
|
+
data.tar.gz: 1802956bd55eafd32b16ff2d473e7b8c4f22ffaa2526ab83afb1c8d271b3fe37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8b1553cba9e5afe792b1f3119ffb9b85e23626d830b752dc98ee5bd28e4c7eeaf8e7b50acb52cfe9e32dcf935d8dcd99694bf2d1d29ebd830c1a9abcb852f38
|
7
|
+
data.tar.gz: 3a189a2dff6750afc58f01189dc86fd671b605f5281e17d725607483e0d2f24603f54cc9071145dcfa681109d971da8736a5e81be454b3b1d3d3ee055060f92f
|
data/lib/prick/database.rb
CHANGED
data/lib/prick/program.rb
CHANGED
data/lib/prick/rdbms.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'prick/command.rb'
|
2
|
-
#require 'prick/ensure.rb'
|
3
2
|
|
4
3
|
require 'csv'
|
5
4
|
|
@@ -133,16 +132,6 @@ EOF
|
|
133
132
|
data_opt = (data ? "" : "--schema-only")
|
134
133
|
Command.command "pg_dump --no-owner #{data_opt} #{db} | gzip --to-stdout >#{file}"
|
135
134
|
end
|
136
|
-
|
137
|
-
private
|
138
|
-
@ensure_states = {
|
139
|
-
exist_user: [:create_user, :drop_user],
|
140
|
-
exist_database: [
|
141
|
-
lambda { |this, db, user| this.ensure_state(:exist_user, user) },
|
142
|
-
lambda { |this, db, user| this.create_database(db, owner: user) },
|
143
|
-
:drop_database
|
144
|
-
]
|
145
|
-
}
|
146
135
|
end
|
147
136
|
end
|
148
137
|
|
data/lib/prick/schema.rb
CHANGED
@@ -7,7 +7,7 @@ module Prick
|
|
7
7
|
BUILD_SQL_FILE = BUILD_BASE_NAME + ".sql"
|
8
8
|
BUILD_YML_FILE = BUILD_BASE_NAME + ".yml"
|
9
9
|
|
10
|
-
# Note this models the
|
10
|
+
# Note this models the SCHEMA_DIR directory, not a database schema
|
11
11
|
class Schema
|
12
12
|
def yml_file() SchemaBuilder.yml_file(SCHEMA_DIR) end
|
13
13
|
|
data/lib/prick/version.rb
CHANGED