diff options
author | Micah Anderson <micah@riseup.net> | 2009-11-23 11:54:04 -0500 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2009-11-23 11:54:04 -0500 |
commit | 3ff12051c8efabcdfb43b99810ff1c2ea22750a3 (patch) | |
tree | 5145331d85099abd1e01dabca1a474b9651184f6 /plugins/puppet/parser/functions/split.rb | |
parent | 8a389425075f54f8c10e2ff08c1aa07827d14622 (diff) | |
download | puppet-common-3ff12051c8efabcdfb43b99810ff1c2ea22750a3.tar.gz puppet-common-3ff12051c8efabcdfb43b99810ff1c2ea22750a3.tar.bz2 |
move plugin directory to fit new 0.25.x style and update file paths accordingly
Diffstat (limited to 'plugins/puppet/parser/functions/split.rb')
-rw-r--r-- | plugins/puppet/parser/functions/split.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/plugins/puppet/parser/functions/split.rb b/plugins/puppet/parser/functions/split.rb deleted file mode 100644 index bffecc1..0000000 --- a/plugins/puppet/parser/functions/split.rb +++ /dev/null @@ -1,23 +0,0 @@ -# This function has two modes of operation: -# -# split($string, $delimiter) : $string -# -# Split the first argument on every $delimiter. $delimiter is interpreted as -# Ruby regular expression. -# -# split($string[], $delimiter) : $string[][] -# -# Returns an array of split results with the result of applying split to each -# item from the first argument. -# -# For long-term portability it is recommended to refrain from using Ruby's -# extended RE features. -module Puppet::Parser::Functions - newfunction(:split, :type => :rvalue) do |args| - if args[0].is_a?(Array) - args.collect do |a| a.split(/#{args[1]}/) end - else - args[0].split(/#{args[1]}/) - end - end -end |