GithubHelp home page GithubHelp logo

Comments (3)

trevor-vaughan avatar trevor-vaughan commented on August 26, 2024

@samcornwell Could you provide an example of this where the arguments are known? One of the reasons that I didn't go down this route was that you would need to know exactly what you are looking at. Or are you suggesting that, should we have a number, we try numeric matches and fall back to a regex if that raises an exception?

from inspec-profile-disa_stig-el7.

samcornwell avatar samcornwell commented on August 26, 2024

I'm just saying that something like with_args(/remember=(\d{2,}|[5-9])/) would be better if we could select the arg remember and apply the real construct >= 5 to its value somehow.

My ruby and RSpec foo are not good enough to know exactly how to do it most easily. I thought it would be ideal to be able to be able to select the arg inline (like is done with with_args) and apply one of the the native matchers to it, but I don't know if it's possible to do that easily. Perhaps one would have to define their own ops and pass those in, or chain them.

Maybe the best way would be to select the rules using a where, and iterate over those using a PamRule resource or structure. A new resource is more work than I intended to propose though.

from inspec-profile-disa_stig-el7.

samcornwell avatar samcornwell commented on August 26, 2024

fixed by #41

from inspec-profile-disa_stig-el7.

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.