diff options
author | Erik Dalén <dalen@spotify.com> | 2014-11-12 15:52:33 +0100 |
---|---|---|
committer | Erik Dalén <dalen@spotify.com> | 2014-11-12 15:52:33 +0100 |
commit | e61f402283774883d7b7c7d0f04dec7c457c968c (patch) | |
tree | a22fac8f4dc19194ec3e6aa4f1fb65ee0d3b766a | |
parent | 85d7eddc41b04c9a9a7bf1a171dd8d3ab157a88a (diff) | |
download | puppet-stdlib-e61f402283774883d7b7c7d0f04dec7c457c968c.tar.gz puppet-stdlib-e61f402283774883d7b7c7d0f04dec7c457c968c.tar.bz2 |
(maint) Fix indentation of range function
-rw-r--r-- | lib/puppet/parser/functions/range.rb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/puppet/parser/functions/range.rb b/lib/puppet/parser/functions/range.rb index ffbdf84..06d75d4 100644 --- a/lib/puppet/parser/functions/range.rb +++ b/lib/puppet/parser/functions/range.rb @@ -65,21 +65,21 @@ Will return: [0,2,4,6,8] end end - # Check whether we have integer value if so then make it so ... - if start.match(/^\d+$/) - start = start.to_i - stop = stop.to_i - else - start = start.to_s - stop = stop.to_s - end + # Check whether we have integer value if so then make it so ... + if start.match(/^\d+$/) + start = start.to_i + stop = stop.to_i + else + start = start.to_s + stop = stop.to_s + end - range = case type - when /^(\.\.|\-)$/ then (start .. stop) - when /^(\.\.\.)$/ then (start ... stop) # Exclusive of last element ... - end + range = case type + when /^(\.\.|\-)$/ then (start .. stop) + when /^(\.\.\.)$/ then (start ... stop) # Exclusive of last element ... + end - result = range.step(step).collect { |i| i } # Get them all ... Pokemon ... + result = range.step(step).collect { |i| i } # Get them all ... Pokemon ... return result end |