idlc-sdk-deploy 1.0.0.rc10 → 1.0.0.rc11

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
  SHA1:
3
- metadata.gz: 74b55585c2ee4490179ad24e1a6ef252b7b6dcf8
4
- data.tar.gz: d09d0dcbdef2a33b66f4ba45dbcd06a5e0252abc
3
+ metadata.gz: def8542ad9743389d272759b90a469c8ac02bc5f
4
+ data.tar.gz: c5a62ed417f7ce27bd26113d7ea8eda0d9c55307
5
5
  SHA512:
6
- metadata.gz: dd307a96a1b449ba4e45c6005d69a72bcf9d9a22bc20c3ddeb85b262f22b0c1d052e08fdb4346bd4823ead75a072acf995eaa61a957e148a8ade75c60e303445
7
- data.tar.gz: 7f85edda9a28159ad351068ac4b5740e694ca03d2318668cc2fa4f55744783327038f682b1fe754bbc6f1eafc1a26cbf80285a14a5ace3ae3470c47879c3b010
6
+ metadata.gz: 39d0049106fcf0b98c06ccedec6bd22e162db3b269d1edbceaa77198aa687485105b90b72dbd34a7fbeb3718301c7e24348932cce7646c932e67949e3f55cd88
7
+ data.tar.gz: b4cb057d409ce2d591bc384c7b3762acab015601969f2fb2b42f06e9e3f6183412113307327a17473ffaacc332a86e2e003612d0c16f7f4d0f53b6930f8b01aa
@@ -7,24 +7,28 @@ module Idlc
7
7
  class << self
8
8
  include Idlc::Helpers
9
9
 
10
- def start_instance(instance)
10
+ def start_instance(instance, async=false)
11
11
  msg('Starting Instance...')
12
12
  instance.start(
13
13
  dry_run: false
14
14
  )
15
- obj = instance.wait_until_running
16
- msg('Started Instance: ' + get_name(obj.tags))
15
+ unless async do
16
+ obj = instance.wait_until_running
17
+ msg('Started Instance: ' + get_name(obj.tags))
18
+ end
17
19
  end
18
20
 
19
- def stop_instance(instance)
21
+ def stop_instance(instance, async=false)
20
22
  raise InstanceKeepAlive if keep_alive?(instance.tags)
21
23
 
22
24
  msg('Stopping Instance...')
23
25
  instance.stop(
24
26
  dry_run: false
25
27
  )
26
- obj = instance.wait_until_stopped
27
- msg('Stopped Instance: ' + get_name(obj.tags))
28
+ unless async do
29
+ obj = instance.wait_until_stopped
30
+ msg('Stopped Instance: ' + get_name(obj.tags))
31
+ end
28
32
  end
29
33
 
30
34
  def enable_keep_alive(instance)
@@ -1,5 +1,5 @@
1
1
  module Idlc
2
2
  module Deploy
3
- VERSION = '1.0.0.rc10'.freeze
3
+ VERSION = '1.0.0.rc11'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idlc-sdk-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc10
4
+ version: 1.0.0.rc11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Cazell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-12 00:00:00.000000000 Z
11
+ date: 2017-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler