lib/poolparty/plugins/line.rb in auser-poolparty-0.2.67 vs lib/poolparty/plugins/line.rb in auser-poolparty-0.2.68
- old
+ new
@@ -2,11 +2,11 @@
class Line
define_resource(:line_in_file) do
# Should refactor
def has_line_in_file(line="line_in_file", file="file", opts={})
- call_function <<-EOE
+ call_custom_function <<-EOE
line {
'#{file}_line' :
file => '#{file}',
line => '#{line}',
#{opts.flush_out("\t", ",")}
@@ -14,21 +14,21 @@
}
EOE
end
def append_if_no_such_line(line="line", file="", refreshonly='false')
- call_function <<-EOE
+ call_custom_function <<-EOE
append_if_no_such_line {
'#{file}' :
file => '#{file}',
line => '#{line}',
refreshonly => #{refreshonly}
}
EOE
end
def delete_lines_from(file="", pattern=//, opts={})
- call_function <<-EOE
+ call_custom_function <<-EOE
delete_lines {
'#{file}' :
file => '#{file}',
#{opts.flush_out("\t", ",")}
pattern => '#{pattern}'
\ No newline at end of file