cookbook 'line', '= 0.1.0', :supermarket
Provides line editing resources for use by recipes
cookbook 'line', '= 0.1.0'
knife cookbook site install line
knife cookbook site download line
Quite often, the need arises to do line editing instead of managing an entire file with a template resource. This cookbook supplies various resources that will help you do this.
Add "depends 'line'" to your cookbooks metadata.rb to gain access to the resoures.
append_if_no_line "example 1" do file "/tmp/dangerfile" string "HI THERE I AM STRING" end
So far, the only resource implemented is append_if_no_line. Planned future resources will include:
append_if_no_line append_if_no_lines comment_lines_matching uncomment_lines_matching delete_lines_matching
tester - A recipe to exercise the resources
Author:: Sean OMeara (firstname.lastname@example.org)
This cookbook has no specified dependencies.