Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuki-inoue/capistrano3-pipenv
https://github.com/yuki-inoue/capistrano3-pipenv
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuki-inoue/capistrano3-pipenv
- Owner: Yuki-Inoue
- Created: 2019-04-04T06:16:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T06:01:10.000Z (over 5 years ago)
- Last Synced: 2024-12-26T14:24:46.686Z (19 days ago)
- Language: Ruby
- Size: 14.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Capistrano3::Pipenv
Pipenv tasks for capistrano3.
## Installation
Add this line to your application's Gemfile:
```ruby
group :development do
gem 'capistrano3-pipenv', require: false
end
```And then execute:
$ bundle install
## Usage
Require in `Capfile` to use the default task:
```ruby
require 'capistrano3/pipenv'
# If you are using pyenv
require 'capistrano3/pyenv'
```The task will run before `deploy:updated` as part of Capistrano's default deploy, or can be run in isolation with `cap production pipenv:install`.
When you require the `capistrano3/pyenv`, the `pipenv` commands will be prefixed by `pyenv exec`.
Following are the default settings configurable in this gem.
```ruby
# for capistrano3/pipenvset :pipenv_roles, :all
set :pipenv_servers, -> { release_roles(fetch(:pipenv_roles)) }
set :pipenv_flags, []
set :pipenv_env_variables, {}
set :pipenv_clean_options, '--all'# for capistrano3/pyenv
set :pyenv_path, -> {
pyenv_path = fetch(:pyenv_custom_path)
pyenv_path ||
if fetch(:pyenv_type, :user) == :system
'/usr/local/pyenv'
else
'$HOME/.pyenv'
end
}
set :pyenv_roles, fetch(:pyenv_roles, :all)
set :pyenv_python_dir, -> { "#{fetch(:pyenv_path)}/versions/#{fetch(:pyenv_python)}" }
set :pyenv_map_bins, %w{pipenv}
```## Development
In your project which uses capistrano (and this gem),
you'd probably want to try something like```
gem 'capistrano3-pipenv', path: '/path/to/local/copy/of/this/repo'
```## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/Yuki-Inoue/capistrano3-pipenv .