ecs_compose 0.1.0.pre5 → 0.1.0.pre6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ecs_compose/cli.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dda22daa866666c5439a1ecfebba1cdf3b6e9a18
|
4
|
+
data.tar.gz: 78c9d8d6272f972507ae05e2840e1b5fb1bca14a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2143cdc284706c09f0617679c3eed643e8717149ad58fd67abcc50de42cc63972e7e9818d0be1e640e4dcc9cd46f9e1045af1a569ce2c556b00a9e871c4d442f
|
7
|
+
data.tar.gz: 26b764aa62f737096c8962cc74adfada14d9787339096a375e6b6b7c51736aaaf95e28704f7e08adfc296486085e3372ffc2f29c1a64b463df6037f3e24bd972
|
data/lib/ecs_compose/cli.rb
CHANGED
@@ -7,6 +7,11 @@ module EcsCompose
|
|
7
7
|
DEFAULT_FILE = "docker-compose.yml"
|
8
8
|
DEFAULT_MANIFEST = "deploy/DEPLOY-MANIFEST.yml"
|
9
9
|
|
10
|
+
# Force status 1 on exit. See: https://github.com/erikhuda/thor/issues/244
|
11
|
+
def self.exit_on_failure?
|
12
|
+
true
|
13
|
+
end
|
14
|
+
|
10
15
|
class_option(:manifest, type: :string,
|
11
16
|
aliases: %w(-m),
|
12
17
|
desc: "Manifest describing a set of tasks and services (takes precedence over --file) [default: #{DEFAULT_MANIFEST}]")
|
@@ -101,9 +106,10 @@ module EcsCompose
|
|
101
106
|
if info.nil?
|
102
107
|
fatal_err("Must pass -i option when using docker-compose.yml")
|
103
108
|
end
|
104
|
-
unless info =~ /\A(service|task):[-_A-Za-z0-9\z]/
|
109
|
+
unless info =~ /\A(service|task):([-_A-Za-z0-9\z]+)/
|
105
110
|
fatal_err("Incorrectly formatted -i option")
|
106
111
|
end
|
112
|
+
type, name = $1, $2
|
107
113
|
Manifest.read_from_file(options.file || DEFAULT_FILE,
|
108
114
|
type.to_sym, name)
|
109
115
|
else raise "Unknown mode: #{mode}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecs_compose
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Kidd
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|