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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c078f359d1c062293eca0caeb456d4f1ceb68c632fcc2cda74aab06cf967da3b
4
- data.tar.gz: 4fc23a43f739db124d9aa470bc19bebe713979894e3eed467c5336e68a0b5d5c
3
+ metadata.gz: db9c06812327daa8c7eb8200db78c4aef2bb15403f8abd3788f8ec4d2031e794
4
+ data.tar.gz: 9968d668652d2f6cfcdb075990005bce4d638d40927366308bcae47a5496e2d2
5
5
  SHA512:
6
- metadata.gz: 1d84bb9d91991e3427b7b1d97d798545bbfa30bada05bbd3205fc819c3d948c2188e535c0b89bd10b9a8de89279a1f4dee916e065d43881b401b2bf9f6e834b8
7
- data.tar.gz: 74bf6a982800c9db88fb0f6225a56569ff11ebd35bced9b0e4a9e187353daf1ef6fbe6fd5fc4dfba6b17a3c19afa23a2638c343102ac1cadb5ac6baa20b54844
6
+ metadata.gz: abbf8c3b65d09f4d5b0c5d869401a0869ef38430303ea788ba3b70842c84e4a2bab3e35230f9b7fcfb9adfd6df05b05232f8781c41cfea7ef9ed55ce783ece33
7
+ data.tar.gz: a6d0215427d9c3288f7e9a7fded3192eb9d05377e3c2c75c6b1f6694467938834e86bc63689c65908132500cd8c206b00e129bd99d92dc11616b64f33362d1af
@@ -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
@@ -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 service #{@service.color(:green)} in the cluster #{@cluster.color(:green)}"
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 service #{@service}"
27
+ puts "Finding Docker image associated with #{@identifier}"
23
28
  service = find_service
24
29
  return unless service
25
30
 
@@ -1,3 +1,3 @@
1
1
  module EcsSolo
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
Binary file
@@ -1,26 +1,12 @@
1
1
  describe EcsSolo::CLI do
2
2
  before(:all) do
3
- @args = "--from Tung"
3
+ @args = "--noop"
4
4
  end
5
5
 
6
- describe "ecs_solo" do
7
- it "hello" do
8
- out = execute("exe/ecs_solo hello world #{@args}")
9
- expect(out).to include("from: Tung\nHello world")
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecs-solo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen