{"id":19251244,"url":"https://github.com/rexops/rex-project","last_synced_at":"2026-06-10T20:31:25.402Z","repository":{"id":138908059,"uuid":"45207889","full_name":"RexOps/rex-project","owner":"RexOps","description":"A class to manage deployment projects","archived":false,"fork":false,"pushed_at":"2016-07-15T12:03:11.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-23T16:48:40.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RexOps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-29T20:11:20.000Z","updated_at":"2017-12-16T22:56:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"49f94103-0d1d-426d-8032-42df2baee04e","html_url":"https://github.com/RexOps/rex-project","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/RexOps/rex-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RexOps","download_url":"https://codeload.github.com/RexOps/rex-project/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RexOps%2Frex-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34170162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09T18:21:17.924Z","updated_at":"2026-06-10T20:31:25.384Z","avatar_url":"https://github.com/RexOps.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project\n\nProject is the main class for application deployments. It encapsulates all settings and applications a project have.\n\nUsually you have your own project class extending this base class.\n\n\n## Architecture\n\n```\n               ----\n              | DB |\n             / ----\n            / \n ----------/        -------------\n| Project  |-------| Application |\n ----------         -------------\n                         /\\\n                        /  \\ \n                       /    \\\n           -----------       -----------\n          | instance1 |     | instance2 |\n           -----------       -----------\n                |                 |\n       ---------------       ---------------\n      | configuration |     | configuration |\n       ---------------       ---------------\n```\n\n## Extending Project class\n\nThis class uses Moose for class construction so extending this class is easy.\n\n```perl\npackage My::Project {\n  use Moose;\n  extends 'Project';\n}\n```\n\n### Overwriting Methods\n\nMost time you want to overwrite the attribute that holds the configuration variables and the base path for you services.\n\n#### srv_root_path\n\n```perl\nhas srv_root_path =\u003e (\n  is =\u003e 'ro',\n  default =\u003e sub {\n    return \"/srv\";\n  }\n);\n```\n\n#### configuration_template_variables \n\n\n```perl\nhas configuration_template_variables =\u003e (\n  is       =\u003e 'ro',\n  default  =\u003e sub {\n    my $my_custom_variables = {\n      foo =\u003e \"bar\",\n      baz =\u003e \"bam\",\n    };\n    return $my_custom_variables;\n  },\n);\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexops%2Frex-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frexops%2Frex-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frexops%2Frex-project/lists"}