full360-sequencer 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/full360-sequencer.rb +11 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abbbd848e9b1781d94ad645dd9cc22f633fdf3f614e9933e2bc644f6062681cb
|
4
|
+
data.tar.gz: e193689050a930b1a39a5007eb325c314ea4f895052cd9bef00bc7b2f780337c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c4614eda5a674ce7a6b112fc3832223f92ad04c52b051649259563b5dca4a86b7344b7edf3ecafc0a2f1c4aebbd675689dc6be59593bd82eef7c21e1f8e0039
|
7
|
+
data.tar.gz: 5caef9605f16951eb9c6bfc33a0153928707e96aa99cd922d5c96f73f59f560b2a906fc33a8ba4e0cd1c86336df8748f56cc59bbcac573fee3374c3a83f2f411
|
data/lib/full360-sequencer.rb
CHANGED
@@ -90,13 +90,22 @@ module Full360
|
|
90
90
|
|
91
91
|
def run_task
|
92
92
|
@logger.info("starting ECS task #{@task_name}")
|
93
|
+
resp = ecs_run_task
|
94
|
+
@task_arn = resp.tasks[0].task_arn
|
95
|
+
@logger.info("#{@task_name} task created #{@task_arn} on cluster #{@cluster}")
|
96
|
+
end
|
97
|
+
|
98
|
+
def ecs_run_task
|
93
99
|
@logger.debug("creating AWS client for ECS task #{@task_name}...")
|
94
100
|
@ecs_client = ::Aws::ECS::Client.new
|
95
101
|
@logger.debug("running ECS task #{@task_name}...")
|
96
102
|
@start_time = Time.new
|
97
103
|
resp = @ecs_client.run_task(@params)
|
98
|
-
|
99
|
-
|
104
|
+
return resp
|
105
|
+
rescue => e
|
106
|
+
@logger.error("error creating ECS task...")
|
107
|
+
@logger.error("response from ECS: #{resp}")
|
108
|
+
raise e
|
100
109
|
end
|
101
110
|
|
102
111
|
def ecs_describe_tasks
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: full360-sequencer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pankaj batra
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-07-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|