rumination 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rumination/deploy/class_methods.rb +15 -0
- data/lib/rumination/deploy.rb +0 -15
- data/lib/rumination/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: b566e0942e398617e49f52b68cd0286fa65915ab
|
4
|
+
data.tar.gz: 35561b35fc0f4285ad4d038d023dfad1440918ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/rumination/deploy.rb
CHANGED
@@ -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
|
data/lib/rumination/version.rb
CHANGED