diff options
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/README.markdown b/README.markdown index 3a6c0cf..e9ad53b 100644 --- a/README.markdown +++ b/README.markdown @@ -280,6 +280,8 @@ Returns true if the variable is empty. ensure_packages --------------- Takes a list of packages and only installs them if they don't already exist. +It optionally takes a hash as a second parameter that will be passed as the +third argument to the ensure_resource() function. - *Type*: statement @@ -655,8 +657,8 @@ Merges two or more hashes together and returns the resulting hash. For example: - $hash1 = {'one' => 1, 'two', => 2} - $hash2 = {'two' => 'dos', 'three', => 'tres'} + $hash1 = {'one' => 1, 'two' => 2} + $hash2 = {'two' => 'dos', 'three' => 'tres'} $merged_hash = merge($hash1, $hash2) # The resulting hash is equivalent to: # $merged_hash = {'one' => 1, 'two' => 'dos', 'three' => 'tres'} @@ -1204,13 +1206,13 @@ to a number. The following values will pass: - validate_slength("discombobulate",17) - validate_slength(["discombobulate","moo"],17) + validate_slength("discombobulate",17) + validate_slength(["discombobulate","moo"],17) -The following valueis will not: +The following values will not: - validate_slength("discombobulate",1) - validate_slength(["discombobulate","thermometer"],5) + validate_slength("discombobulate",1) + validate_slength(["discombobulate","thermometer"],5) |