2017 © Pedro Peláez
 

library capifony-recipes

Capifony recipes

image

agiuliano/capifony-recipes

Capifony recipes

  • Wednesday, February 12, 2014
  • by agiuliano
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,683 Installations
  • Ruby
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Capifony Recipes

Add some shortcut to your Capifony project, (*1)

Installation

Add the following to your composer.json, (*2)

"agiuliano/capifony-recipes": "dev-master"

Usage

After you Capified your project, add the following to your Capfile if you want to add one recipe at time, (*3)

load 'vendor/agiuliano/capifony-recipes/recipes/ask_branch.rb'

otherwise, if you want to add all the recipes, you can add the following, (*4)

Dir["vendor/agiuliano/capifony-recipes/recipes/*.rb"].each {|file| load file }

Recipes

The following section describes the recipes in the package and how to use them, (*5)

Git branch choice

When you deploy your application, Capifony just ask you which branch you want to deploy., (*6)

By default, it propose to you the current branch you are on., (*7)

Parameters

When you setup your project, it'd be cool if Capifony automagically upload a specified parameters.yml on your server., (*8)

With this recipe you can tell Capifony which is you parameter file and when to upload it. In particular, in deploy.rb or prod/staging/whatever.rb file you can write, (*9)

set :parameters_file, "parameters.yml"
after 'deploy:setup', 'upload_parameters'

parameters_file tells which name your parameters file has whereas after 'deploy:setup', 'upload_parameters' explains when the task has to be performed., (*10)

You can also add a custom folder:, (*11)

set :parameters_dir, "app/config"

The Versions

12/02 2014

dev-master

9999999-dev

Capifony recipes

  Sources   Download

MIT

21/10 2013

v1.0

1.0.0.0

Capifony recipes

  Sources   Download

MIT