cookbook 'line', '= 0.2.10', :supermarket
Provides line editing resources for use by recipes
cookbook 'line', '= 0.2.10'
knife supermarket install line
knife supermarket 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
replace_or_add "ipv4 localhost hosts entry" do path "/etc/hosts" pattern "Why hello there.*" line "Why hello there you beautiful person, you." end
So far, the only resource implemented are
Planned future resources will include:
tester - A recipe to exercise the resources
Author:: Sean OMeara (email@example.com)
This cookbook has no specified dependencies.