Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lorenzosinisi/mina-lock
Manually lock and unlock mina deployments
https://github.com/lorenzosinisi/mina-lock
Last synced: 3 days ago
JSON representation
Manually lock and unlock mina deployments
- Host: GitHub
- URL: https://github.com/lorenzosinisi/mina-lock
- Owner: lorenzosinisi
- License: mit
- Created: 2017-01-21T13:24:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-09T14:23:04.000Z (over 7 years ago)
- Last Synced: 2024-11-29T16:59:19.518Z (29 days ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/mina-lock
- Size: 12.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Mina Lock
Manually lock and unlock the deployment of your app when using Mina. Prevent other team members from deploying an application using a custom lockfile.
When the deployment is locked it will make it fail and output something like `The deployment of this project was locked by USERNAME at TIME. Run mina unlock:deployment`
## Installation
Via Bundler:
```ruby
# Gemfile
gem 'mina-lock', require: false
```## Usage example
```ruby
# config/deploy.rbrequire 'mina/lock'
... other options
task deploy: :environment do
deploy do
invoke 'fail:when_locked' # should be the first thing you want to check
invoke 'git:clone'
...
end
end
```Adds 2 task to manually 'lock' and 'unlock' the deployment of mina creating a file called 'deployment.lock' that should be checked before each deployment.
## Tasks
```
mina lock:deployment # Locks the deployment manually
mina unlock:deployment # Unlocks the deployment
```## Contributing
Feel free to contribute!