capistrano-dockercompose-interactive 0.0.3 → 0.0.4
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a080d0912a2c3fc23b0e743ce518513695234610
|
|
4
|
+
data.tar.gz: ba2082c24e0058adfb91bf4a7dbf871c847868ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7df1c265206a731ec6d41cb7b1dba2e79b9d29697dbacca91c6bcd997e27e39dfa7854349fba6dab0a5ee8b6a2d3a19bd6c8037fdfa2fc1515b050aaddabeca
|
|
7
|
+
data.tar.gz: f282424621b0c012bf0ecd2084e8644819218b9db93ca4f622d5f7f426eb4e949a781ffc46431f992e316d05c82e2059bb5d8fa73b76927bc082976da23d3685
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = 'capistrano-dockercompose-interactive'
|
|
7
|
-
spec.version = '0.0.
|
|
7
|
+
spec.version = '0.0.4'
|
|
8
8
|
spec.date = '2018-02-01'
|
|
9
9
|
spec.summary = 'Helps managing docker compose excution on local or remote with inetractive shell support'
|
|
10
10
|
spec.description = spec.summary
|
|
@@ -14,6 +14,10 @@ class Instance
|
|
|
14
14
|
@config = YAML.load(raw_config)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
def execute(cmd, capture = false)
|
|
18
|
+
execute_compose_command(cmd, capture)
|
|
19
|
+
end
|
|
20
|
+
|
|
17
21
|
def execute_compose_command(cmd, capture = false)
|
|
18
22
|
project = @project.empty? ? "" : "-p #{@project}"
|
|
19
23
|
file = @file.empty? ? "" : "--file #{@file}"
|