ecs-solo 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +2 -0
- data/lib/ecs_solo/deploy.rb +7 -2
- data/lib/ecs_solo/version.rb +1 -1
- data/pkg/ecs-solo-0.1.0.gem +0 -0
- data/spec/cli_spec.rb +5 -19
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db9c06812327daa8c7eb8200db78c4aef2bb15403f8abd3788f8ec4d2031e794
|
4
|
+
data.tar.gz: 9968d668652d2f6cfcdb075990005bce4d638d40927366308bcae47a5496e2d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abbf8c3b65d09f4d5b0c5d869401a0869ef38430303ea788ba3b70842c84e4a2bab3e35230f9b7fcfb9adfd6df05b05232f8781c41cfea7ef9ed55ce783ece33
|
7
|
+
data.tar.gz: a6d0215427d9c3288f7e9a7fded3192eb9d05377e3c2c75c6b1f6694467938834e86bc63689c65908132500cd8c206b00e129bd99d92dc11616b64f33362d1af
|
data/CHANGELOG.md
CHANGED
@@ -3,5 +3,8 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [0.1.1]
|
7
|
+
- fix error message when ecs service not found and fix specs
|
8
|
+
|
6
9
|
## [0.1.0]
|
7
10
|
- Initial release.
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# ecs-solo
|
2
2
|
|
3
|
+
[![BoltOps Badge](https://img.boltops.com/boltops/badges/boltops-badge.png)](https://www.boltops.com)
|
4
|
+
|
3
5
|
Deploy Docker image from ECS service to the current instance. This is useful if you want to deploy the current running ECS docker image onto an EC2 instance outside of ECS purview. It can also be useful to run the Docker container locally and exam it.
|
4
6
|
|
5
7
|
## Usage
|
data/lib/ecs_solo/deploy.rb
CHANGED
@@ -8,9 +8,14 @@ module EcsSolo
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def run
|
11
|
+
if @options[:noop]
|
12
|
+
puts "NOOP: Will find task definition associated with #{@identifier.color(:green)} in the cluster #{@cluster.color(:green)}"
|
13
|
+
return
|
14
|
+
end
|
15
|
+
|
11
16
|
task_definition = find_task_definition
|
12
17
|
unless task_definition
|
13
|
-
puts "Unable to task definition associated with
|
18
|
+
puts "Unable to task definition associated with #{@identifier.color(:green)} in the cluster #{@cluster.color(:green)}"
|
14
19
|
exit 1
|
15
20
|
end
|
16
21
|
|
@@ -19,7 +24,7 @@ module EcsSolo
|
|
19
24
|
end
|
20
25
|
|
21
26
|
def find_task_definition
|
22
|
-
puts "Finding Docker image associated with
|
27
|
+
puts "Finding Docker image associated with #{@identifier}"
|
23
28
|
service = find_service
|
24
29
|
return unless service
|
25
30
|
|
data/lib/ecs_solo/version.rb
CHANGED
data/pkg/ecs-solo-0.1.0.gem
CHANGED
Binary file
|
data/spec/cli_spec.rb
CHANGED
@@ -1,26 +1,12 @@
|
|
1
1
|
describe EcsSolo::CLI do
|
2
2
|
before(:all) do
|
3
|
-
@args = "--
|
3
|
+
@args = "--noop"
|
4
4
|
end
|
5
5
|
|
6
|
-
describe "
|
7
|
-
it "
|
8
|
-
out = execute("exe/
|
9
|
-
expect(out).to include("
|
10
|
-
end
|
11
|
-
|
12
|
-
commands = {
|
13
|
-
"hell" => "hello",
|
14
|
-
"hello" => "name",
|
15
|
-
"hello -" => "--from",
|
16
|
-
"hello name" => "--from",
|
17
|
-
"hello name --" => "--from",
|
18
|
-
}
|
19
|
-
commands.each do |command, expected_word|
|
20
|
-
it "completion #{command}" do
|
21
|
-
out = execute("exe/ecs_solo completion #{command}")
|
22
|
-
expect(out).to include(expected_word) # only checking for one word for simplicity
|
23
|
-
end
|
6
|
+
describe "ecs-solo" do
|
7
|
+
it "deploy" do
|
8
|
+
out = execute("exe/ecs-solo deploy demo-web-development #{@args}")
|
9
|
+
expect(out).to include("Will find task")
|
24
10
|
end
|
25
11
|
end
|
26
12
|
end
|