Giter Site home page Giter Site logo

Comments (6)

PlagueHO avatar PlagueHO commented on June 11, 2024

Great point @jcwalker - I totally agree - this should behave like this. I'll try and put some time in this weekend.

from filecontentdsc.

jcwalker avatar jcwalker commented on June 11, 2024

@PlagueHO Awesome! If you need any help feel free to reach out.

from filecontentdsc.

jcwalker avatar jcwalker commented on June 11, 2024

@PlagueHO I started this today. Looking at the code there is a Assert-ParametersValid function that only tests for a file's existence and then returns an error. Since we agreed that we should return $false instead are you cool with removing the function all together and have a separate test if the file exists?

from filecontentdsc.

PlagueHO avatar PlagueHO commented on June 11, 2024

@jcwalker - yep - that sounds good. Less code is usually best 😁

from filecontentdsc.

jcwalker avatar jcwalker commented on June 11, 2024

@PlagueHO After my last comment I changed the Assert-ParametersValid to check for the parent path of the file being managed. That way it has the same functionality as before, at least the same idea :)

Here is where I'm at currently. I have the KeyValuePiarFile resource updated just need to do the same to the other 3 resources. If you see any problems let me know.

from filecontentdsc.

PlagueHO avatar PlagueHO commented on June 11, 2024

I've just got one issue (PowerShell/DscResource.Tests#256) to fix over in DSCResource.Tests for the DSC resource kit before I release this to PS Gallery. But I'm hoping to fix that today. Thanks again for this contribution!

from filecontentdsc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.