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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/full360-sequencer.rb +11 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f819ed618a5506ae1c555c18f82f44600639a0889b5462c0733637cf8edeaef
4
- data.tar.gz: 4492610bc15d211a433dd687c4419b293a20b5252b69d398f8e5f78a9b84dcad
3
+ metadata.gz: abbbd848e9b1781d94ad645dd9cc22f633fdf3f614e9933e2bc644f6062681cb
4
+ data.tar.gz: e193689050a930b1a39a5007eb325c314ea4f895052cd9bef00bc7b2f780337c
5
5
  SHA512:
6
- metadata.gz: 266a6a7d1cdc16ddd799973bc356aba974b61c7a2b7e7276814172ecc98262783780c55cbfc7749927fc549710d11b2aaea6c526f1e253807edc1bf4d4a4bb4a
7
- data.tar.gz: 4f84c6003da6a89ee5746684cb704464726fe653b7cbf8a5e860ad7155a363d69414b727972db94ba9ebfd9ab4fca67884ef086f4e8c1b36d749e592135b1cbe
6
+ metadata.gz: 8c4614eda5a674ce7a6b112fc3832223f92ad04c52b051649259563b5dca4a86b7344b7edf3ecafc0a2f1c4aebbd675689dc6be59593bd82eef7c21e1f8e0039
7
+ data.tar.gz: 5caef9605f16951eb9c6bfc33a0153928707e96aa99cd922d5c96f73f59f560b2a906fc33a8ba4e0cd1c86336df8748f56cc59bbcac573fee3374c3a83f2f411
@@ -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
- @task_arn = resp.tasks[0].task_arn
99
- @logger.info("#{@task_name} task created #{@task_arn} on cluster #{@cluster}")
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.3
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-06-22 00:00:00.000000000 Z
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