cfengine/design-center — pull request #308 by bheilman (2013-05-20 17:22:22+00:00)
Title: require --installsource to be a file

Clarifies the following scenario:

bheilman@dc35:~$ ./design-center/tools/cf-sketch/cf-sketch.pl --veryverbose --apiconfig config.json --installsource ~/design-center/sketches/ --repolist ~/policy/promises/sketches

cf-sketch> install System::motd

>> OVERRIDING CONFIG FROM config.json
>> {"log":"STDERR","log_level":4,"recognized_sources":["~/design-center/sketches"],"repolist":["~/policy/promises/sketches"],"runfile":{"filter_inputs":[],"location":"~/policy/promises/core/dc-runfile.cf","relocate_path":"sketches","standalone":false},"vardata":"~/policy/dc-registry.json"}
>> {"dc_api_version":"0.0.1","request":{"install":[{"force":0,"sketch":"System::motd","source":"/home/bheilman/design-center","target":"/home/bheilman/policy/promises/sketches"}]}}
DCAPI::log3(DCAPI.pm:180): Successfully loaded vardata file /home/bheilman/policy/dc-registry.json
<< {"api_ok":{"warnings":[],"success":false,"errors":["Sketch System::motd could not be found in source repo"],"error_tags":{"System::motd":1},"data":{},"log":[],"tags":{}}}
OK: Got unsuccessful result: {"success":false,"warnings":[],"errors":["Sketch System::motd could not be found in source repo"],"error_tags":{"System::motd":1},"log":[],"data":{},"tags":{}}
Error: Sketch System::motd could not be found in source repo
Error: Sketch System::motd could not be found in source repo