vault-tools 0.4.11 → 0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby-gemset +1 -0
- data/lib/vault-tools/vault_db_tasks.rb +25 -0
- data/lib/vault-tools/version.rb +1 -1
- metadata +5 -10
- data/lib/vault-tools/payments_db_tasks.rb +0 -25
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
vault-tools
|
@@ -0,0 +1,25 @@
|
|
1
|
+
desc "Pull migrations from vault HEAD"
|
2
|
+
task :pull_vault_schema do
|
3
|
+
steps = []
|
4
|
+
steps << 'cd contrib/'
|
5
|
+
if File.exists?('contrib/vault')
|
6
|
+
steps << 'rm -rf vault'
|
7
|
+
end
|
8
|
+
steps << 'git clone -n git@github.com:heroku/vault --depth 1'
|
9
|
+
steps << 'cd vault'
|
10
|
+
steps << 'git checkout HEAD db/migrations/*'
|
11
|
+
# make sure we don't submodule it
|
12
|
+
steps << 'rm -rf .git'
|
13
|
+
sh steps.join(' && ')
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "Drop and recreate vault-test database"
|
17
|
+
task :create_vault_db => [:drop_vault_db] do
|
18
|
+
sh 'createdb vault-test'
|
19
|
+
sh 'sequel -m contrib/vault/db/migrations postgres:///vault-test'
|
20
|
+
end
|
21
|
+
|
22
|
+
desc "Drop the vault-test database"
|
23
|
+
task :drop_vault_db do
|
24
|
+
sh 'dropdb vault-test || true'
|
25
|
+
end
|
data/lib/vault-tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vault-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-01-
|
13
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: scrolls
|
@@ -183,6 +183,7 @@ extensions: []
|
|
183
183
|
extra_rdoc_files: []
|
184
184
|
files:
|
185
185
|
- .gitignore
|
186
|
+
- .ruby-gemset
|
186
187
|
- .ruby-version
|
187
188
|
- .travis.yml
|
188
189
|
- .yardopts
|
@@ -198,7 +199,6 @@ files:
|
|
198
199
|
- lib/vault-tools/core_db_tasks.rb
|
199
200
|
- lib/vault-tools/hid.rb
|
200
201
|
- lib/vault-tools/log.rb
|
201
|
-
- lib/vault-tools/payments_db_tasks.rb
|
202
202
|
- lib/vault-tools/pipeline.rb
|
203
203
|
- lib/vault-tools/product.rb
|
204
204
|
- lib/vault-tools/s3.rb
|
@@ -207,6 +207,7 @@ files:
|
|
207
207
|
- lib/vault-tools/time.rb
|
208
208
|
- lib/vault-tools/usage_db_tasks.rb
|
209
209
|
- lib/vault-tools/user.rb
|
210
|
+
- lib/vault-tools/vault_db_tasks.rb
|
210
211
|
- lib/vault-tools/version.rb
|
211
212
|
- lib/vault-tools/web.rb
|
212
213
|
- test/app_test.rb
|
@@ -235,21 +236,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
235
236
|
- - ! '>='
|
236
237
|
- !ruby/object:Gem::Version
|
237
238
|
version: '0'
|
238
|
-
segments:
|
239
|
-
- 0
|
240
|
-
hash: -4329855813357893782
|
241
239
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
240
|
none: false
|
243
241
|
requirements:
|
244
242
|
- - ! '>='
|
245
243
|
- !ruby/object:Gem::Version
|
246
244
|
version: '0'
|
247
|
-
segments:
|
248
|
-
- 0
|
249
|
-
hash: -4329855813357893782
|
250
245
|
requirements: []
|
251
246
|
rubyforge_project:
|
252
|
-
rubygems_version: 1.8.
|
247
|
+
rubygems_version: 1.8.25
|
253
248
|
signing_key:
|
254
249
|
specification_version: 3
|
255
250
|
summary: Test classes, base web classes, and helpers - oh my!
|
@@ -1,25 +0,0 @@
|
|
1
|
-
desc "Pull db/structure.sql from payments HEAD"
|
2
|
-
task :pull_payments_schema do
|
3
|
-
steps = []
|
4
|
-
steps << 'cd contrib/'
|
5
|
-
if File.exists?('contrib/payments')
|
6
|
-
steps << 'rm -rf payments'
|
7
|
-
end
|
8
|
-
steps << 'git clone -n git@github.com:heroku/payments --depth 1'
|
9
|
-
steps << 'cd payments'
|
10
|
-
steps << 'git checkout HEAD db/structure.sql'
|
11
|
-
# make sure we don't submodule it
|
12
|
-
steps << 'rm -rf .git'
|
13
|
-
sh steps.join(' && ')
|
14
|
-
end
|
15
|
-
|
16
|
-
desc "Drop and recreate payments-test database"
|
17
|
-
task :create_payments_db => [:drop_payments_db] do
|
18
|
-
sh 'createdb payments-test'
|
19
|
-
sh 'psql payments-test -f contrib/payments/db/structure.sql'
|
20
|
-
end
|
21
|
-
|
22
|
-
desc "Drop the payments-test database"
|
23
|
-
task :drop_payments_db do
|
24
|
-
sh 'dropdb payments-test || true'
|
25
|
-
end
|