{"id":19466823,"url":"https://github.com/dena/capistrano-deploy_locker","last_synced_at":"2026-06-12T06:04:56.492Z","repository":{"id":48287352,"uuid":"88009272","full_name":"DeNA/capistrano-deploy_locker","owner":"DeNA","description":"Capistrano Plugin to Lock Deployment","archived":false,"fork":false,"pushed_at":"2021-08-03T08:41:40.000Z","size":11,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2026-06-01T20:06:16.804Z","etag":null,"topics":["capistrano","deployment"],"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/DeNA.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-04-12T04:19:52.000Z","updated_at":"2023-08-03T01:35:16.000Z","dependencies_parsed_at":"2022-09-15T09:20:25.316Z","dependency_job_id":null,"html_url":"https://github.com/DeNA/capistrano-deploy_locker","commit_stats":null,"previous_names":["denadev/capistrano-deploy_locker"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DeNA/capistrano-deploy_locker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeNA%2Fcapistrano-deploy_locker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeNA%2Fcapistrano-deploy_locker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeNA%2Fcapistrano-deploy_locker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeNA%2Fcapistrano-deploy_locker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeNA","download_url":"https://codeload.github.com/DeNA/capistrano-deploy_locker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeNA%2Fcapistrano-deploy_locker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34231219,"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-12T02:00:06.859Z","response_time":109,"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":["capistrano","deployment"],"created_at":"2024-11-10T18:30:28.799Z","updated_at":"2026-06-12T06:04:56.463Z","avatar_url":"https://github.com/DeNA.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/capistrano-deploy_locker.svg)](https://badge.fury.io/rb/capistrano-deploy_locker)\n[![Build Status](https://travis-ci.org/DeNADev/capistrano-deploy_locker.svg?branch=master)](https://travis-ci.org/DeNADev/capistrano-deploy_locker)\n# Capistrano::DeployLocker\n\nA capistrano plugin to make deployment with exclusive lock.\n\nIn other words, this protects any two processes from running `cap deploy`\ncommand at the same time.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'capistrano-deploy_locker'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install capistrano-deploy_locker\n\n\n## Configuration\n\nSet Capistrano variables with `set name, value`.\n\nName | Default | Description\n-----|---------|------------\ndeploy_lock_key |  `\"#{fetch(:application)}.#{fetch(:stage)}\"` | String to specify lock target\ndeploy_lock_dir | `./.lock` | Directory to write lockfile or other info\ndeploy_lock_user | `ENV['USER'] \\|\\| ENV['LOGIN']` | Who locks deploy\ndeploy_lock_reason | `\"#{$0} #{ARGV}\"` | Why deploy is locked\n\nYou can provide `:deploy_lock_user` and `:deploy_lock_reason` to show infomation\nof your deployment for other operators who try to get lock in fail.\n\n## Usage\n\nEdit Capfile:\n\n```ruby\n# Load DSL and Setup Up Stages\nrequire 'capistrano/setup'\n\n# Includes default deployment tasks\nrequire 'capistrano/deploy'\n\n# Includes tasks from other gems included in your Gemfile\nrequire 'capistrano/deploy_locker'\n```\n\nEdit your `config/deploy.rb`:\n\n```ruby\nbefore 'deploy:starting', 'deploy:lock'\nafter 'deploy:finished', 'deploy:unlock'\nafter 'deploy:failed', 'deploy:unlock'\n```\n\n## Alternatives\n\nHere is a list of other libraries which provides similar functionarily:\n\n- [capistrano_deploy_lock](https://github.com/ndbroadbent/capistrano_deploy_lock)\n- [capistrano-deploy-lock](https://github.com/maruf-freelancer/capistrano-deploy-lock)\n- [capistrano-deploylock](https://github.com/tetuyoko/capistrano-deploylock)\n- [caplock](https://github.com/Druwerd/caplock)\n\n## License\n\nAvailable as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\nCopyright (c) 2017 DeNA Co., Ltd., IKEDA Kiyoshi\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdena%2Fcapistrano-deploy_locker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdena%2Fcapistrano-deploy_locker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdena%2Fcapistrano-deploy_locker/lists"}