Initial Chef repository

This commit is contained in:
Greg Karékinian
2015-07-21 19:45:23 +02:00
parent 7e5401fc71
commit ee4079fa85
1151 changed files with 185163 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
if defined?(ChefSpec)
def append_hostsfile_entry(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:hostsfile_entry, :append, resource_name)
end
def create_hostsfile_entry(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:hostsfile_entry, :create, resource_name)
end
def create_hostsfile_entry_if_missing(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:hostsfile_entry, :create_if_missing, resource_name)
end
def remove_hostsfile_entry(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:hostsfile_entry, :remove, resource_name)
end
def update_hostsfile_entry(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:hostsfile_entry, :update, resource_name)
end
end