topaz2/chef_boilerplate_php

View on GitHub
attributes/default.rb

Summary

Maintainability
A
0 mins
Test Coverage
default[:boilerplate_php] = {
  repo: {
    type: 'git',
    uri: 'https://github.com/topaz2/chef_boilerplate_php.git'
  }
}

default[:boilerplate_php][:git] = {
  hooks: {
    lint: 'php/lint',
    phpcs: 'php/phpcs',
    phpmd: 'php/phpmd',
    phpunit: 'php/phpunit'
  }
}

default[:boilerplate_php][:framework] = {
  type: :symfony,
  version: '2.x'
}
default[:boilerplate_php][:symfony] = {
  git: {
    hooks: {
    }
  }
}
default[:boilerplate_php][:cakephp] = {
  git: {
    hooks: {
      phpcs: 'cakephp/phpcs',
      phpunit: 'cakephp/phpunit'
    }
  }
}
default[:boilerplate_php][:sphinx] = {
  host: 'sphinx.local',
  port: '80',
  path: '/'
}
default[:boilerplate_php][:phpdoc] = {
  host: 'phpdoc.local',
  port: '80',
  path: '/'
}

# Merge framework specific hooks
default[:boilerplate_php][:git][:hooks].update(
  default[:boilerplate_php][node[:boilerplate_php][:framework][:type]][:git][:hooks]
)