Skip to content
  • tylercloke's avatar
    File and children implicit state reporting. · e27f8162
    tylercloke authored
    Updated to include the correct new_resource state even when the file / directory had not been previously created. Updated tricky special cases, e.g. when there are temp files, at converge time, you must depend on the temp file to get state and not @new_resource.path. Also, changing the checksum on action_create for the template provider breaks updating, so it cannot use update_new_file_state (checksum is updated in that provider later in code).
    
    Refactored tests to (somewhat hackily) stub out update_new_file_state, because this breaks due to lack of use of a fake filesystem framework for testing. Recommend refactor of spec tests to use fake file system when we have time :)
    e27f8162