Skip to content

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

Open
ipd wants to merge 2 commits intomina-deploy:masterfrom
ipd:master
Open

Support passing of arbitrary name=value pairs to the --set argument to whenever#6
ipd wants to merge 2 commits intomina-deploy:masterfrom
ipd:master

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