]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
Add clamp function
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Wed, 18 Nov 2015 11:32:24 +0000 (14:32 +0300)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Thu, 31 Dec 2015 09:46:07 +0000 (12:46 +0300)
commit27782242bc27dced7bed316a01c21fffd94e34f8
tree67bd90fde8238bfff754d2fcdd782c9fbc6d88f0
parent61333cfc48026af204483d681bd8b10cb44d6fc6
Add clamp function

Clamp keeps value within the range.
Employ of soft() makes the whole thing is independant of order.
README.markdown
lib/puppet/parser/functions/clamp.rb [new file with mode: 0644]
spec/acceptance/clamp_spec.rb [new file with mode: 0755]
spec/functions/clamp_spec.rb [new file with mode: 0644]