Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support passing of arbitrary name=value pairs to the --set argument to whenever #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ipd
Copy link

@ipd ipd commented Jul 31, 2017

This allows passing of arbitrary values into whenever via the --set facility.

# ### whenever_sets
# Pass optional name=value pairs to the --set argument of whenever.
# Specify these in your deploy.rb as a hash:
#     set :whenever_sets, host: ENV['HOST']

NOTE: this has been ported from a PR that was originally opened into mina, see: mina-deploy/mina#359

This is a very useful option we have been using in production for 1 1/2 years now, it would be great to no longer have to maintain it in a fork. 😺

ipd added 2 commits July 31, 2017 15:47
Set them in `deploy.rb`:

    set :whenver_sets, our_host: ENV['host']

Use them in `schedule.rb`:

    if @our_host == 'starfleet.org'
        ...
    end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant