rumination 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c56145ea2506b08e83ee95b144f35568092a2a0b
4
- data.tar.gz: 5ff66e954d2c14dfe5527ca318f764964e3f53b3
3
+ metadata.gz: a4317736dc2e36d965a958564107f8be68e686e9
4
+ data.tar.gz: de2f5ea281741cc85b08b8a76245d19037ee8dca
5
5
  SHA512:
6
- metadata.gz: b05e041ee1067dc276c49dd1df6c1fdd90eb14722b05e296df78a15fef541b36ff30dd59e4aad8cd89c46c962aa9a45a794891f588dbadd3a071ee9fc6d88ddf
7
- data.tar.gz: 4135ef363fd1a0f7a7d8caa56c582fd6ce76dc2a9339150f6fa8f725784b2c81918ab8aed9de46a318d9162cfc3b7f61f3acbdb3fd407e7cdd3e0933d9efd7b2
6
+ metadata.gz: d8c0b47ca6bc6867bdb361deada08c9ca25060fd073830508de1a2523ddba6036d3ed575ed0ed8fae4f80ed69cf4b1fdfaf75b6a6f03bd69f8c5f1d5b44860d9
7
+ data.tar.gz: 6ac66acc73d97f00a65a11a7ada23addf7c2b709b1d293f5e12e83fbeb5116e132393c1c25f9fc040aefd27bf44309930201ba6f7ec3788be10b81f26bf64163
data/README.md CHANGED
@@ -13,6 +13,8 @@ noun
13
13
 
14
14
  2. the action of chewing the cud: *"cows slow down their rumination"*
15
15
 
16
+ > Sell your cleverness and buy bewilderment - **Rumi**
17
+
16
18
  ## Installation
17
19
 
18
20
  Add this line to your application's Gemfile:
@@ -19,7 +19,7 @@ module Rumination
19
19
  call do
20
20
  raise BootstrappedAlready if bootstrapped?
21
21
  copy_dump_if_requested
22
- container(:backend).run("rake deploy:bootstrap:inside[#{target}]")
22
+ app_container.run("rake deploy:bootstrap:inside[#{target}]")
23
23
  raise BootstrapError unless $? == 0
24
24
  end
25
25
  end
@@ -28,9 +28,9 @@ module Rumination
28
28
  setup_outside_env
29
29
  DockerCompose.build.down("--remove-orphans").up
30
30
  yield if block_given?
31
- container(:backend).exec("rake deploy:unload[#{target}]")
31
+ app_container.exec("rake deploy:unload[#{target}]")
32
32
  raise DeployError unless $? == 0
33
- container(:backend).run("rake deploy:finish[#{target}]")
33
+ app_container.run("rake deploy:finish[#{target}]")
34
34
  raise DeployError unless $? == 0
35
35
  end
36
36
 
@@ -73,7 +73,7 @@ module Rumination
73
73
  def copy_dump_if_requested
74
74
  return unless config.copy_dumpfile.present?
75
75
  return unless File.exists?(config.copy_dumpfile)
76
- container(:backend).cp_to_container(
76
+ app_container.cp_to_container(
77
77
  config.copy_dumpfile,
78
78
  Rumination.config.pg.dumpfile_path
79
79
  )
@@ -105,7 +105,7 @@ module Rumination
105
105
  end
106
106
 
107
107
  def bootstrapped?
108
- container(:backend).has_file?(env_file_path)
108
+ app_container.has_file?(env_file_path)
109
109
  end
110
110
 
111
111
  def env_file_path
@@ -115,6 +115,14 @@ module Rumination
115
115
  def container(name)
116
116
  DockerCompose::Container.new(name)
117
117
  end
118
+
119
+ def app_container_name
120
+ config.app_countainer || :app
121
+ end
122
+
123
+ def app_countainer
124
+ container(app_container_name)
125
+ end
118
126
  end
119
127
  end
120
128
  end
@@ -1,3 +1,3 @@
1
1
  module Rumination
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumination
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Baguinski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-20 00:00:00.000000000 Z
11
+ date: 2017-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler