{"id":19572360,"url":"https://github.com/linjunpop/capistrano-logrotate","last_synced_at":"2025-04-27T03:33:01.400Z","repository":{"id":62555009,"uuid":"45442062","full_name":"linjunpop/capistrano-logrotate","owner":"linjunpop","description":"Logrotate integration for Capistrano","archived":false,"fork":false,"pushed_at":"2020-04-22T09:01:07.000Z","size":21,"stargazers_count":14,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-23T08:51:36.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/linjunpop.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}},"created_at":"2015-11-03T04:40:43.000Z","updated_at":"2024-02-27T15:54:46.000Z","dependencies_parsed_at":"2022-11-03T05:30:30.399Z","dependency_job_id":null,"html_url":"https://github.com/linjunpop/capistrano-logrotate","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/linjunpop%2Fcapistrano-logrotate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linjunpop%2Fcapistrano-logrotate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linjunpop%2Fcapistrano-logrotate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linjunpop%2Fcapistrano-logrotate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linjunpop","download_url":"https://codeload.github.com/linjunpop/capistrano-logrotate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251085144,"owners_count":21533821,"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-11T06:26:08.574Z","updated_at":"2025-04-27T03:32:58.255Z","avatar_url":"https://github.com/linjunpop.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Capistrano::Logrotate\n\n[![Code Climate](http://img.shields.io/codeclimate/github/linjunpop/capistrano-logrotate.svg)](https://codeclimate.com/github/linjunpop/capistrano-logrotate)\n[![Gem Version](http://img.shields.io/gem/v/capistrano-logrotate.svg)](https://rubygems.org/gems/capistrano-logrotate)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'capistrano-logrotate'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install capistrano-logrotate\n\n## Usage\n\n```ruby\n# Capfile\n\nrequire 'capistrano/logrotate'\n```\n\nthen you can use `cap logrotate:config'\n\nConfigurable options, shown here with defaults: Please note the configuration options below are not required unless you are trying to override a default setting\n\n```ruby\nset :logrotate_role, :app\nset :logrotate_conf_path, -\u003e { File.join('/etc', 'logrotate.d', \"#{fetch(:application)}_#{fetch(:stage)}\") }\nset :logrotate_log_path, -\u003e { File.join(shared_path, 'log') }\nset :logrotate_logs_keep, -\u003e { 12 }\nset :logrotate_interval, -\u003e { 'daily' }\nset :logrotate_user, -\u003e { fetch(:user) }\nset :logrotate_group, -\u003e { fetch(:user) }\nset :logrotate_template_path, -\u003e { :default }\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/linjunpop/capistrano-logrotate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinjunpop%2Fcapistrano-logrotate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinjunpop%2Fcapistrano-logrotate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinjunpop%2Fcapistrano-logrotate/lists"}