rumination 0.12.1 → 0.12.2

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: d0a60c6e2ea0133b0d9321e6d59d5fd55cd44aa7
4
- data.tar.gz: e7d85f970d6262b1020c943603d62fc1c17b7648
3
+ metadata.gz: b566e0942e398617e49f52b68cd0286fa65915ab
4
+ data.tar.gz: 35561b35fc0f4285ad4d038d023dfad1440918ec
5
5
  SHA512:
6
- metadata.gz: e2273fcfb4b56176788937b4ac5838fb866f9e5127b213451838e7618a1b1291443c1d5c6c5a9844ecdba5ba91c46a1401187ca008d5c700afe78034b5038ab4
7
- data.tar.gz: 01b8c93aa4c7b6ae9ac36a96d3bdd6ecad6883866444afcbeeb866773ff283063f1d270ebb03f68483232eafb8fc4c986f4aab47ac90649a16f6ea41a213c9ac
6
+ metadata.gz: 6c6f5f63739d84f593647723f0d764054a666b8b143932b693f430d99406f8095b44efd4d6e1e7c7f921324d3aa39444688872b1879f02e5da9a5dc666e3eed7
7
+ data.tar.gz: 7aee5345647a9f654ecabae7937d9a9722dfcf7e376ef70e26d13c0e28340d7e5a821c8a72211f7175c40164746eca5f4926db9780e0af1eeb058f559a2bc818
@@ -3,6 +3,21 @@ require_relative "base"
3
3
  module Rumination
4
4
  module Deploy
5
5
  module ClassMethods
6
+ def docker_env
7
+ env = {}
8
+ if config.docker_machine
9
+ dm_env_str = `docker-machine env #{config.docker_machine}`
10
+ env = env.merge(Dotenv::Parser.call(dm_env_str))
11
+ end
12
+ env["COMPOSE_FILE"] = config.compose_file if config.compose_file
13
+ env["VIRTUAL_HOST"] = config.virtual_host
14
+ if config.letsencrypt_email.present?
15
+ env["LETSENCRYPT_HOST"] = config.virtual_host
16
+ env["LETSENCRYPT_EMAIL"] = config.letsencrypt_email
17
+ end
18
+ env
19
+ end
20
+
6
21
  def bootstrap target:
7
22
  deploy_class.new(target).call do |deploy|
8
23
  deploy.bootstrap
@@ -11,20 +11,5 @@ module Rumination
11
11
  BootstrapError = Class.new(DeployError)
12
12
  BootstrappedAlready = Class.new(BootstrapError)
13
13
  DatabaseInitError = Class.new(BootstrapError)
14
-
15
- def docker_env
16
- env = {}
17
- if config.docker_machine
18
- dm_env_str = `docker-machine env #{config.docker_machine}`
19
- env = env.merge(Dotenv::Parser.call(dm_env_str))
20
- end
21
- env["COMPOSE_FILE"] = config.compose_file if config.compose_file
22
- env["VIRTUAL_HOST"] = config.virtual_host
23
- if config.letsencrypt_email.present?
24
- env["LETSENCRYPT_HOST"] = config.virtual_host
25
- env["LETSENCRYPT_EMAIL"] = config.letsencrypt_email
26
- end
27
- env
28
- end
29
14
  end
30
15
  end
@@ -1,3 +1,3 @@
1
1
  module Rumination
2
- VERSION = "0.12.1"
2
+ VERSION = "0.12.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumination
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Baguinski