db_stager 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/db_stager/cli.rb +6 -2
- data/lib/db_stager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b61c5b179445a96bd7fffc53b1bfbbe37e7cbd70
|
|
4
|
+
data.tar.gz: 236e74f0283dcfdbdacb4c548d463c7b353c1afc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6cc24928a5f0f331e406e50d7edb2d22b07c1d1f518e7a7167662010f4048ff69856ce0d2a4781602e7c0677ce3ee389635751f4166cdccd44bf2ebc0b3f3ec
|
|
7
|
+
data.tar.gz: 2604bfb89e98d8c897a3651e41afb4ae281186184dc5bb2e0dd57034071c9e928774b23ba1438b1e4829f3436b416964ae959977056f5034fd01935df48c107f
|
data/Gemfile.lock
CHANGED
data/lib/db_stager/cli.rb
CHANGED
|
@@ -20,7 +20,9 @@ module DbStager
|
|
|
20
20
|
method_option :environment, type: :string, aliases: '-e'
|
|
21
21
|
method_option :file, type: :string, aliases: '-f'
|
|
22
22
|
desc "capture", "grab a new stager copy of your db"
|
|
23
|
-
def capture
|
|
23
|
+
def capture(dir=".")
|
|
24
|
+
Dir.chdir(dir)
|
|
25
|
+
|
|
24
26
|
environment = options[:environment] || ENV['RAILS_ENV'] || ENV['RACK_ENV']
|
|
25
27
|
# Get connection info
|
|
26
28
|
|
|
@@ -44,7 +46,9 @@ module DbStager
|
|
|
44
46
|
desc "download", "download your most recent capture from S3"
|
|
45
47
|
|
|
46
48
|
desc "load", "overwrite the current db with the most recently downloaded stager db"
|
|
47
|
-
def load
|
|
49
|
+
def load(dir=".")
|
|
50
|
+
Dir.chdir(dir)
|
|
51
|
+
|
|
48
52
|
environment = options[:environment] || ENV['RAILS_ENV'] || ENV['RACK_ENV']
|
|
49
53
|
# Get connection info
|
|
50
54
|
|
data/lib/db_stager/version.rb
CHANGED