sfn 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/sfn/cache.rb +9 -2
- data/lib/sfn/command/update.rb +1 -1
- data/lib/sfn/command_module/stack.rb +5 -1
- data/lib/sfn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57c0b106d6e595a6ccae1b8242e1b57dbf1418db
|
4
|
+
data.tar.gz: b5aaa5b140fc279e39edcaa83bfd3a004e3b3208
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d8e5a5bd254e7112df68538b644663b678797ca64dc78f971b252ae42fb7599a0207050d45f97ee333a18dd739e0ead80e58bd466b6f7794d7793826417acc7
|
7
|
+
data.tar.gz: 63983740fed1f8fb70317410da8a1e844181de88115f2c745ce8be1091636ec8310ca44099125fe8af52cf4d7339706e7b46d37b5a65ca5d9efa5caaa5f15ffd
|
data/CHANGELOG.md
CHANGED
data/lib/sfn/cache.rb
CHANGED
@@ -265,7 +265,7 @@ module Sfn
|
|
265
265
|
yield
|
266
266
|
end
|
267
267
|
rescue => e
|
268
|
-
if(e.class.to_s
|
268
|
+
if(e.class.to_s.end_with?('Timeout'))
|
269
269
|
raise if raise_on_locked
|
270
270
|
else
|
271
271
|
raise
|
@@ -285,6 +285,9 @@ module Sfn
|
|
285
285
|
# Simple lock for memory cache
|
286
286
|
class LocalLock
|
287
287
|
|
288
|
+
class LocalLockTimeout < RuntimeError
|
289
|
+
end
|
290
|
+
|
288
291
|
# @return [Symbol] key name
|
289
292
|
attr_reader :_key
|
290
293
|
# @return [Numeric] timeout
|
@@ -320,7 +323,11 @@ module Sfn
|
|
320
323
|
_lock.unlock if _lock.locked?
|
321
324
|
end
|
322
325
|
else
|
323
|
-
|
326
|
+
if(defined?(Redis))
|
327
|
+
raise Redis::Lock::LockTimeout.new "Timeout on lock #{_key} exceeded #{_timeout} sec"
|
328
|
+
else
|
329
|
+
raise LocalLockTimeout.new "Timeout on lock #{_key} exceeded #{_timeout} sec"
|
330
|
+
end
|
324
331
|
end
|
325
332
|
end
|
326
333
|
|
data/lib/sfn/command/update.rb
CHANGED
@@ -35,7 +35,7 @@ module Sfn
|
|
35
35
|
c_current = config[:compile_parameters].fetch(s_name.join('_'), Smash.new)
|
36
36
|
config[:compile_parameters][s_name.join('_')] = compile_params.merge(c_current)
|
37
37
|
end
|
38
|
-
|
38
|
+
c_stack.nested_stacks(false).each do |n_stack|
|
39
39
|
s_name.push(n_stack.name)
|
40
40
|
c_setter.call(n_stack)
|
41
41
|
s_name.pop
|
@@ -123,7 +123,11 @@ module Sfn
|
|
123
123
|
stack_parameters = sparkle.fetch('Parameters', Smash.new)
|
124
124
|
end
|
125
125
|
unless(stack_parameters.empty?)
|
126
|
-
|
126
|
+
if(sparkle.is_a?(SparkleFormation))
|
127
|
+
ui.info "#{ui.color('Stack runtime parameters:', :bold)} - template: #{ui.color(sparkle.root_path.map(&:name).map(&:to_s).join(' > '), :green, :bold)}"
|
128
|
+
else
|
129
|
+
ui.info ui.color('Stack runtime parameters:', :bold)
|
130
|
+
end
|
127
131
|
if(config.get(:parameter).is_a?(Array))
|
128
132
|
config[:parameter] = Smash[
|
129
133
|
*config.get(:parameter).map(&:to_a).flatten
|
data/lib/sfn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sfn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bogo-cli
|