{"id":17681248,"url":"https://github.com/jessedoyle/dawn","last_synced_at":"2025-07-16T12:35:55.690Z","repository":{"id":69009919,"uuid":"176367300","full_name":"jessedoyle/dawn","owner":"jessedoyle","description":"Mac OS Development Environment Automation","archived":false,"fork":false,"pushed_at":"2024-01-08T21:01:07.000Z","size":32,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-14T08:04:42.606Z","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/jessedoyle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-03-18T20:50:31.000Z","updated_at":"2020-03-04T19:41:16.000Z","dependencies_parsed_at":"2023-06-07T08:00:40.948Z","dependency_job_id":null,"html_url":"https://github.com/jessedoyle/dawn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jessedoyle/dawn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessedoyle%2Fdawn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessedoyle%2Fdawn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessedoyle%2Fdawn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessedoyle%2Fdawn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jessedoyle","download_url":"https://codeload.github.com/jessedoyle/dawn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jessedoyle%2Fdawn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265509574,"owners_count":23779383,"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-10-24T09:10:37.256Z","updated_at":"2025-07-16T12:35:55.634Z","avatar_url":"https://github.com/jessedoyle.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dawn\n\nDawn is a tool that allows MacOS development environments to be configured from scratch using a template file (think Ansible).\n\nThis gem is very much a proof-of-concept, contains no tests and is very basic. You should use it at your own risk.\n\n## Installation\n\n1. Download the source code as a `.zip` file from GitHub.\n2. Unzip the repository archive.\n3. `cd unzipped_directory`\n4. ```bin/dawn up example.yml --username=`whoami` ```\n\n## Usage\n\nDawn provides logic for the following actions:\n\n### Shell\n\nThis action executes a shell command. All shell actions must provide the following parameters:\n\n- **description** [required] - A high-level description of the action.\n- **flag** [required] - A unique identifier for a particular action.\n- **type** [required] - Must be `shell`.\n- **up** [required] - The raw command that enables the action.\n- **down** [required] - The raw command that disables the action.\n- **test** [required] - A command used to test if the action is enabled.\n- **user** [optional] - The user to execute the command as. Defaults to the current user.\n\n### File\n\nThis action creates a file on the local filesystem. All file actions must provide the following parameters:\n\n- **description** [required] - A high-level description of the action.\n- **flag** [required] - A unique identifier for a particular action.\n- **type** [required] - Must be `file`.\n- **content** [required] - The content of the file.\n- **path**  [required] - The path to the file on the filesystem.\n- **permissions** [optional] - The octal filesystem permissions (as a number) for the file. Defaults to `0400`.\n\n## Parameters\n\nA Dawn template can define a global `parameters` definition. The parameters are resolved when the template is executed via command line arguments.\n\nAn example is as follows:\n\n```yaml\nparameters:\n  - name: username\n    description: The system username\n    type: string\n    short: '-uUSERNAME'\n    long: '--username=USERNAME'\n    required: true\n```\n\nThe parameter values can then be interpolated in actions as follows:\n\n```yaml\nactions:\n  - description: Say Hello\n    flag: helloworld\n    type: shell\n    up: echo up ${parameters:username}\n    down: echo down ${parameters:username}\n    test: echo test ${parameters:username}\n```\n\n## Logging\n\nA logfile of all action executions is kept in `JSON` format in the user's directory in the following location:\n\n```\n~/.dawn/log.json\n```\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Dawn project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/dawn/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjessedoyle%2Fdawn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjessedoyle%2Fdawn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjessedoyle%2Fdawn/lists"}