panteras_api 0.0.21 → 0.0.22

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: 5a357bc5e7cd455c33e2bc535d8f6eaa4a2c13a6
4
- data.tar.gz: 8e5987d563f1d0b333cfaeb836c51447aad31ceb
3
+ metadata.gz: 7d980a1240e7f8ba7aaea65490c173e9f839abb1
4
+ data.tar.gz: cda749462d77eecb04fb4885fd47ffeddb221481
5
5
  SHA512:
6
- metadata.gz: 4131bf404c9e2ac9cf6e4c51d1978824c188375222228da82a2bdcbf6b30da7cb827a2cfc3dea1742aa2c632551dd47810fa3b6456e89d149d722e034023729c
7
- data.tar.gz: 3dd7148c76f09119877b34264a03ac4d95cd5a930e1356bcd449a33d682059d334bb10c706f04d5b1f659c0718c65a85860099d087ed5b494a69ea4a47200c9f
6
+ metadata.gz: 12d6da114d73dfeaea7ba58344352f9cb14b95fb6b1ace0cb893aefddae02ee447c6e8d558811911d8046d0b86dea4738170eeee81b158450e9145262d7b08c0
7
+ data.tar.gz: a18be83a812349127b5c888c04b4563112e4ba1184297a97d740a8f7d647d26d687df8e11b7b682e34acc9489c9ba61c8fc226b02ca71fb72bda5625dcd1261a
@@ -50,6 +50,10 @@ OptionParser.new("Usage: #{$0} [options]") do |opts|
50
50
  options[:marathon_password] = passwd
51
51
  end
52
52
 
53
+ opts.on("-t", "--timeout TIMEOUT", "default: 10") do |t|
54
+ options[:timeout] = t.to_i
55
+ end
56
+
53
57
  opts.on("-e", "--exclude RegExp_PATTERN", "default: empty") do |exclude|
54
58
  excludes << exclude
55
59
  end
@@ -58,6 +62,7 @@ OptionParser.new("Usage: #{$0} [options]") do |opts|
58
62
  end.parse!
59
63
 
60
64
  config_default[:fqdn] = Utils.fully_qualified_hostname if options[:fqdn].nil?
65
+ config_default[:timeout] = 10 if options[:timeout].nil?
61
66
  config = config_default.merge!(options)
62
67
 
63
68
  my_fqdn = config[:fqdn]
@@ -65,7 +70,7 @@ my_fqdn = config[:fqdn]
65
70
  puts "#" * 75 if config[:debug]
66
71
  puts "* My hostname: #{my_fqdn}" if config[:debug]
67
72
 
68
- timeout_in_seconds = 10
73
+ timeout_in_seconds = config[:timeout]
69
74
 
70
75
  begin
71
76
  Timeout::timeout(timeout_in_seconds) do
@@ -1,3 +1,3 @@
1
1
  module PanterasApi
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panteras_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Colby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-11 00:00:00.000000000 Z
11
+ date: 2019-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler