{"id":15013950,"url":"https://github.com/santana/puppet-cleaner","last_synced_at":"2025-04-12T05:53:40.453Z","repository":{"id":7223302,"uuid":"8530848","full_name":"santana/puppet-cleaner","owner":"santana","description":"Transforms puppet DSL source code to make it comply with the style guide","archived":false,"fork":false,"pushed_at":"2014-06-20T14:45:55.000Z","size":236,"stargazers_count":65,"open_issues_count":2,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-12T05:53:31.610Z","etag":null,"topics":["puppet","puppet-dsl-source","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/santana.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-03T02:53:40.000Z","updated_at":"2023-09-17T19:42:44.000Z","dependencies_parsed_at":"2022-09-05T02:10:48.572Z","dependency_job_id":null,"html_url":"https://github.com/santana/puppet-cleaner","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santana%2Fpuppet-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santana%2Fpuppet-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santana%2Fpuppet-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santana%2Fpuppet-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santana","download_url":"https://codeload.github.com/santana/puppet-cleaner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525156,"owners_count":21118616,"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":["puppet","puppet-dsl-source","ruby"],"created_at":"2024-09-24T19:44:59.533Z","updated_at":"2025-04-12T05:53:40.424Z","avatar_url":"https://github.com/santana.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Puppet Cleaner\n==============\n\nPuppet DSL source code cleaner and helper utilities\n\nMotivation\n----------\nhttp://santanatechnotes.blogspot.mx/2013/04/puppet-cleaner-010-released.html\n\nRequirements\n------------\n\n  * puppet\n\nInstallation\n------------\n\n    sudo gem install puppet-cleaner\n\nUtilities\n------------\n\n### puppet-clean\n\nReceives a puppet manifest file as input and outputs the result of\napplying the set of transformation rules that you select. If no options\nare selected all of them are applied, which currently is a subset of the\npuppet style guide.\n\n**Note:** the use of `${}` for variable interpolation in strings and the\nreplacement of double with single quotes when possible are done by default\nand are not optional.\n\n    Usage:\n    \n        puppet-clean [-h] [-t n] [-abedlmovw ] file.pp [file2.pp...]\n    \n    Options:\n        -h, --help              this help message\n        -d, --debug             prints tokens before and after the transformation\n    \n        -a, --alignfarrow       aligns fat arrows (`=\u003e`)\n        -b, --quotedbooleans    removes unneeded quotes around boolean literals\n        -e, --ensurefirst       moves `ensure` attribute to the top\n        -l, --link              declares symbolic links by using `ensure =\u003e link` and `target` attributes\n        -m, --mlcomments        converts /* */ style comments to #\n        -o, --octalmode         represents file modes as a 4 digits string\n        -r, --resourcetitles    quotes resource titles\n        -t n, --softtabs n      indents by n spaces\n        -v, --quotedvariables   removes unneeded quotes around variables\n        -w, --trailingws        removes trailing white space\n\n### puppet-diff\n\nReceives two puppet manifest files and outputs its difference, after\nconverting them to YAML. Useful for verifying what (if anything) has\nchanged after applying puppet-clean.\n\n    Usage:\n        puppet-diff [-h] [-w] old.pp new.pp\n    \n    Options:\n        -h, --help        this help message\n        -w, --write       write a YAML file for each pp file if they are different\n\n### puppet-inspect\n\nReceives a puppet manifest file and converts its objects (defined types,\nclasses and nodes) to YAML.\n\n    Usage:\n        puppet-inspect file.pp\n\nHelp \u0026 Feedback\n---------------\n\nYou can mail me directly if you need help or have any feedback to share.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantana%2Fpuppet-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsantana%2Fpuppet-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantana%2Fpuppet-cleaner/lists"}