opsworks-cli 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ab03c769a18190d2590e765e79e992e820685da
4
- data.tar.gz: ce762573e029e65e1776bcfae265f7611762fc85
3
+ metadata.gz: 24eda80145b5d2de20212e40f355dbe721ef7500
4
+ data.tar.gz: 3c31ff27cbc3c162a9fe6d9f6d40e43a81f05757
5
5
  SHA512:
6
- metadata.gz: d347483d2342efc5d4cbbd882f310044bd327269868105eab6ea53e9f4a368cb2420c0cd2b9d4853a2cb409cfcb0e2eb0b6fddfa18932025f6bda958c0e9a8da
7
- data.tar.gz: ca593191e47af2a66c8f072d1c1fca78f869c9cc0784c06e8b5c33819b63cba6afeabc66d0c677d98261c4f4b95ee4ef979ff9c6eb7879ddf13b0943e745948b
6
+ metadata.gz: cf216b8aebe92d9e3060f4475baff5bd26dbe4baa18517be1baa4e675a82802b90b0df0979e76d4450165d3c6f29a2083da286797e01e893260a565e8fbdbeca
7
+ data.tar.gz: 087856b4b7c318f259fd995f86f93218f6243b8f211a7c9dea5393adc01464857d9a43c5601476d8adb459628d367a710370e2aeefc3c4af787ad2fdbfdeef4b
@@ -11,7 +11,7 @@ module OpsWorks
11
11
  thor.class_eval do
12
12
  desc 'apps:deploy APP [--stack STACK]', 'Deploy an OpsWorks app'
13
13
  option :stack, type: :array
14
- option :timeout, type: :numeric
14
+ option :timeout, type: :numeric, default: 300
15
15
  define_method 'apps:deploy' do |name|
16
16
  fetch_keychain_credentials unless env_credentials?
17
17
  stacks = parse_stacks(options.merge(active: true))
@@ -36,7 +36,6 @@ module OpsWorks
36
36
  end
37
37
  end
38
38
  end
39
-
40
39
  end
41
40
  end
42
41
  # rubocop:enable CyclomaticComplexity
@@ -10,7 +10,7 @@ module OpsWorks
10
10
  thor.class_eval do
11
11
  desc 'recipes:run RECIPE [--stack STACK]', 'Execute a Chef recipe'
12
12
  option :stack, type: :array
13
- option :timeout, type: :numeric
13
+ option :timeout, type: :numeric, default: 300
14
14
  define_method 'recipes:run' do |recipe|
15
15
  fetch_keychain_credentials unless env_credentials?
16
16
  stacks = parse_stacks(options.merge(active: true))
@@ -14,7 +14,7 @@ module OpsWorks
14
14
 
15
15
  desc 'update [--stack STACK]', 'Update OpsWorks custom cookbooks'
16
16
  option :stack, type: :array
17
- option :timeout, type: :numeric
17
+ option :timeout, type: :numeric, default: 300
18
18
  def update
19
19
  fetch_keychain_credentials unless env_credentials?
20
20
  stacks = parse_stacks(options.merge(active: true))
@@ -1,5 +1,5 @@
1
1
  module OpsWorks
2
2
  module CLI
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
@@ -11,6 +11,7 @@ module OpsWorks
11
11
  # rubocop:disable MethodLength
12
12
  def self.wait(deployments, timeout = TIMEOUT)
13
13
  start_time = Time.now
14
+ timeout ||= TIMEOUT
14
15
  while deployments.any?(&:running?)
15
16
  return if Time.now - start_time > timeout
16
17
  sleep POLL_INTERVAL
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opsworks-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-09 00:00:00.000000000 Z
11
+ date: 2014-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor