]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
puppet-lint cleanup
authorJames Fryman <james@frymanet.com>
Fri, 9 Nov 2012 17:08:24 +0000 (11:08 -0600)
committerJames Fryman <james@frymanet.com>
Thu, 15 Nov 2012 16:38:03 +0000 (10:38 -0600)
12 files changed:
RELEASE_PROCESS.markdown
lib/puppet/parser/functions/abs.rb
lib/puppet/parser/functions/chomp.rb
lib/puppet/parser/functions/chop.rb
lib/puppet/parser/functions/is_ip_address.rb
lib/puppet/parser/functions/parseyaml.rb
lib/puppet/parser/functions/squeeze.rb
lib/puppet/parser/functions/str2bool.rb
spec/monkey_patches/publicize_methods.rb
spec/unit/puppet/parser/functions/fqdn_rotate_spec.rb
spec/unit/puppet/parser/functions/validate_hash_spec.rb
spec/unit/puppet/parser/functions/validate_string_spec.rb

index 3982c844d6cac3008944f7263c0b08b43991d3f3..0f9328ed0fa62572c4d8f4de991876cdbe790076 100644 (file)
@@ -22,4 +22,3 @@
  * Build a new package with puppet-module or the rake build task if it exists
  * Publish the new package to the forge
  * Bonus points for an announcement to puppet-users.
-
index ade5462781fda5e173e76b10484e93aabd5e8694..11d2d7feade35fa8056d8e9b3d4019753959bcd1 100644 (file)
@@ -4,7 +4,7 @@
 
 module Puppet::Parser::Functions
   newfunction(:abs, :type => :rvalue, :doc => <<-EOS
-    Returns the absolute value of a number, for example -34.56 becomes 
+    Returns the absolute value of a number, for example -34.56 becomes
     34.56. Takes a single integer and float value as an argument.
     EOS
   ) do |arguments|
index c99d139dabd8ea71f21d59b2e46bd6632d4d2dd9..4564a000abecd0dc1b2952fd34e5123bbe4fdf81 100644 (file)
@@ -4,7 +4,7 @@
 
 module Puppet::Parser::Functions
   newfunction(:chomp, :type => :rvalue, :doc => <<-'EOS'
-    Removes the record separator from the end of a string or an array of 
+    Removes the record separator from the end of a string or an array of
     strings, for example `hello\n` becomes `hello`.
     Requires a single string or array as an input.
     EOS
index 636b990d21d7b5b65b693399b7cb98caf662938c..f242af39ce831681fa14ff2930643166c0e45254 100644 (file)
@@ -4,9 +4,9 @@
 
 module Puppet::Parser::Functions
   newfunction(:chop, :type => :rvalue, :doc => <<-'EOS'
-    Returns a new string with the last character removed. If the string ends 
-    with `\r\n`, both characters are removed. Applying chop to an empty 
-    string returns an empty string. If you wish to merely remove record 
+    Returns a new string with the last character removed. If the string ends
+    with `\r\n`, both characters are removed. Applying chop to an empty
+    string returns an empty string. If you wish to merely remove record
     separators then you should use the `chomp` function.
     Requires a string or array of strings as input.
     EOS
index b4a9a15dd32bda74aee61a64bc36b1729d28b235..a90adabe15acd94d98cfe37ba18859f72db16496 100644 (file)
@@ -15,7 +15,7 @@ Returns true if the string passed to this function is a valid IP address.
         "given #{arguments.size} for 1")
     end
 
-    begin 
+    begin
       ip = IPAddr.new(arguments[0])
     rescue ArgumentError
       return false
index e8ac8a4cb950e41a374d8247fb5df9be49ed09fb..53d54faff749099f6c7f663e3d840c0885094f1b 100644 (file)
@@ -4,7 +4,7 @@
 
 module Puppet::Parser::Functions
   newfunction(:parseyaml, :type => :rvalue, :doc => <<-EOS
-This function accepts YAML as a string and converts it into the correct 
+This function accepts YAML as a string and converts it into the correct
 Puppet structure.
     EOS
   ) do |arguments|
index 65c174aae84ee5d6c8d2450d7ad9c2b4310bcbee..81fadfdb2f06f9f32d144cc64f319c68368fdd57 100644 (file)
@@ -14,9 +14,9 @@ Returns a new string where runs of the same character that occur in this set are
     end
 
     item = arguments[0]
-    squeezeval = arguments[1] 
+    squeezeval = arguments[1]
 
-    if item.is_a?(Array) then  
+    if item.is_a?(Array) then
       if squeezeval then
         item.collect { |i| i.squeeze(squeezeval) }
       else
index c320da663a2fc162f2fbcbad52ae3df90b3000f3..0509c2be22ff9053c08ea195f59d36db0b6e8328 100644 (file)
@@ -4,7 +4,7 @@
 
 module Puppet::Parser::Functions
   newfunction(:str2bool, :type => :rvalue, :doc => <<-EOS
-This converts a string to a boolean. This attempt to convert strings that 
+This converts a string to a boolean. This attempt to convert strings that
 contain things like: y, 1, t, true to 'true' and strings that contain things
 like: 0, f, n, false, no to 'false'.
     EOS
index b39e9c00260e50874170586ffa24f0af814d504f..f3a1abf409ca0149d714ba60a391a4130eff6f38 100755 (executable)
@@ -8,4 +8,3 @@ class Class
         self.class_eval { private(*saved_private_instance_methods) }
     end
 end
-
index 4eb799dc51a6f2873b0cf2f79d897d71f9ff1a3c..2577723351a4e0f507ad6abf1428a5ea508a0f79 100644 (file)
@@ -19,7 +19,7 @@ describe "the fqdn_rotate function" do
   end
 
   it "should rotate a string to give the same results for one host" do
-    scope.expects(:lookupvar).with("::fqdn").returns("127.0.0.1").twice 
+    scope.expects(:lookupvar).with("::fqdn").returns("127.0.0.1").twice
     scope.function_fqdn_rotate(["abcdefg"]).should eql(scope.function_fqdn_rotate(["abcdefg"]))
   end
 
index f63db1dc2d11fb01284e503f95873803d0e12813..06d77a18bb9aafa543f7f8a81493ba3a41b3fae4 100644 (file)
@@ -41,4 +41,3 @@ describe Puppet::Parser::Functions.function(:validate_hash) do
   end
 
 end
-
index f40bf2a20eef44ad38df157aa1933a469d38ed49..007b4ca9c041cee577c2bc9cf1bfd233c744b607 100644 (file)
@@ -58,4 +58,3 @@ describe Puppet::Parser::Functions.function(:validate_string) do
     end
   end
 end
-