Giter Site home page Giter Site logo

chef-composer's Introduction

Description

A cookbook to install Composer and maintain composer packages within project deployments.

Requirements

n/a

Attributes

  • :install_path: The path which composer will be installed
  • :owner: The owner of the file
  • :dev: Whether to execute the project activities with the --dev flag.
default[:composer][:install_path] = "/usr/local/bin"
default[:composer][:owner] = "root" # apache|www-data|root|whatever
default[:composer][:project][:dev] = false

Usage

composer

Actions:

  • :install
  • :uninstall
  • :update

Example:

composer "/usr/local/bin" do
  owner "root" # optional
  action [:install, :update]
end

composer "/usr/local/bin" do
  action :uninstall
do

composer_project

Actions:

  • :install
  • :update
  • :dump_autoload

Example:

composer_project "/var/www/pr1" do
 dev true # optional
 run_as "www-data" # optional
 composer_path "/usr/local/bin" #optional
 action [:install, :update, :dump_autoload]
end

## composer_project_package

create a custom project from a specific package like symfony (recipe as an example)

Actions:

  • :install
  • :update

Example:

composer_project_packages "symfony/framework-standard-edition" do
	project_packpath "/var/www"
	project_packfolder "Symfony"
	project_packversion "2.1.7"
	dev false
  	action [:install]
end

## Recipe Symfony

This recipe install symfony in default folder define or by cutomize the folowing attributes :

Attributes

  • :sfpath: The path which Symfony will be installed
  • :sffolder: The directory inside the path
  • :sfversion: The Symfony version to install
  • :sfuser: Owner
  • :sfgroup: Owner's group
default[:composer][:sfpath] = "/var/www"
default[:composer][:sffolder] = "Symfony"
default[:composer][:sfversion] = ""
default[:composer][:sfuser] = "vagrant"
default[:composer][:sfgroup] = "vagrant"

chef-composer's People

Contributors

gpsnail avatar kdambekalns avatar tjlytle avatar tkitchin-inviqa avatar zircote avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.