Unverified Commit 33956ff0 authored by Ben Abrams's avatar Ben Abrams
Browse files

[WIP] allow sources to use a full path with the name attribute


Signed-off-by: default avatarBen Abrams <me@benabrams.it>
parent b6dc450b
......@@ -67,7 +67,12 @@ class Chef
end
def source_json_path
"#{new_resource.source_json_directory}/#{new_resource.source_name}.json"
# allow a full path to be specified with the name attribute
if new_resource.source_name.start_with?('/') && new_resource.source_name.end_with?('.json')
new_resource.source_name
else
"#{new_resource.source_json_directory}/#{new_resource.source_name}.json"
end
end
def source_type_map
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment