Sha256: d893c382604b397b8dc0cb9f8f1b429cfbe851ca66ea7a34597e3e2016d2a0a6

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

#
# Cookbook Name:: xhprof
# Recipe:: default
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

include_recipe "php"
case node[:platform]
when "debian","ubuntu"
  execute "apt-get update" do
    action :nothing
  end

  %w{python-software-properties pkg-config}.each do |pkg|
    package pkg
  end

  execute "add-apt-repository ppa:brianmercer/php5-xhprof" do
    not_if { File.exists?("/etc/apt/sources.list.d/xhprof.list") }
    notifies :run, resources("execute[apt-get update]"), :immediately
  end

  package "php5-xhprof"

when "mac_os_x"
  package "xhprof"

  template "/usr/local/etc/php5/conf.d/xhprof.ini" do
    source "xhprof.ini.erb"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
megalodon-0.1.1 cookbooks/xhprof/recipes/default.rb
megalodon-0.1.0 cookbooks/xhprof/recipes/default.rb