{"id":19186850,"url":"https://github.com/dougeverly/nodeattr","last_synced_at":"2025-05-08T01:25:23.669Z","repository":{"id":8120143,"uuid":"9536652","full_name":"DougEverly/nodeattr","owner":"DougEverly","description":"Ruby implementation of nodeattr.","archived":false,"fork":false,"pushed_at":"2013-04-24T14:01:21.000Z","size":144,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T14:51:16.790Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DougEverly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-19T02:50:43.000Z","updated_at":"2014-04-23T22:07:14.000Z","dependencies_parsed_at":"2022-08-20T13:50:50.051Z","dependency_job_id":null,"html_url":"https://github.com/DougEverly/nodeattr","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DougEverly%2Fnodeattr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DougEverly%2Fnodeattr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DougEverly%2Fnodeattr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DougEverly%2Fnodeattr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DougEverly","download_url":"https://codeload.github.com/DougEverly/nodeattr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252980122,"owners_count":21835172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T11:16:56.054Z","updated_at":"2025-05-08T01:25:23.635Z","avatar_url":"https://github.com/DougEverly.png","language":"Ruby","readme":"# Nodeattr\n\nRuby implementation of nodeattr.\n\nThe goal is to replicate functionality of nodeattr as defined by the Genders library developed by [LLNL](https://computing.llnl.gov/linux/genders.html).\n\nCurrent implementation is very limited in that only simple gender query works. This will be expanded upon to provide union, intersection, and exclusion of genders. Values are also not yet supported, but are planned for a future update.\n\nIncluded are the nodeattr class and the nodeattr command line tool.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'nodeattr'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install nodeattr\n\n## Class Usage\n\n    require 'nodeattr'\n    \n    n = NodeAttr.new\n    \n    if nodes = n.query(@gender)\n      puts nodes.join(@sep)\n    end\n\n\n## Command Line Usage\n\n    Usage: nodeattr [options] query\n    \n    -f genders                       genders file\n    -n                               space  separated  list\n    -s                               newline  separated  list\n    -c                               comma separated list\n\n    nodeattr -f example/genders -s unix\n    web-01 web-02 web-03 web-04 mail-01 mail-02 mail-03 mail-04 mail-05 mail-06 mail-07 mail-08 mail-09 mail-10\n\n    nodeattr -f example/genders web\n    web-01\n    web-02\n    web-03\n    web-04\n    \n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdougeverly%2Fnodeattr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdougeverly%2Fnodeattr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdougeverly%2Fnodeattr/lists"}