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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6764055dd1b4427b20643ec689dc08b5b5470dfc
4
- data.tar.gz: a7adf17c1247439aeaabdf5d9537d13b191a0013
3
+ metadata.gz: b61c5b179445a96bd7fffc53b1bfbbe37e7cbd70
4
+ data.tar.gz: 236e74f0283dcfdbdacb4c548d463c7b353c1afc
5
5
  SHA512:
6
- metadata.gz: dbb65a8ef013519a31cdae94148ff202ed3d44f9b6f15224878af607ab2e74f30f914b69298b0e254630e764b95b5c58231ecd4193e307e023ffca36cd1dad0d
7
- data.tar.gz: dea98d8c0ba423e24be2cf203945ae62c9f91222413bb66e1f2cdc23e785f5d126f3275344f8223a6d84f19ff813ce2ab1b32ec75545685eb48de0b6afa42548
6
+ metadata.gz: a6cc24928a5f0f331e406e50d7edb2d22b07c1d1f518e7a7167662010f4048ff69856ce0d2a4781602e7c0677ce3ee389635751f4166cdccd44bf2ebc0b3f3ec
7
+ data.tar.gz: 2604bfb89e98d8c897a3651e41afb4ae281186184dc5bb2e0dd57034071c9e928774b23ba1438b1e4829f3436b416964ae959977056f5034fd01935df48c107f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- db_stager (0.1.0)
4
+ db_stager (0.1.1)
5
5
  dotenv (~> 2.2)
6
6
  sequel (~> 4.41.0)
7
7
  thor (~> 0.19)
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
 
@@ -1,3 +1,3 @@
1
1
  module DbStager
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db_stager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Kaufman