Skip to content

Instantly share code, notes, and snippets.

View hailwood's full-sized avatar

Matthew Hailwood hailwood

View GitHub Profile
{
"name": "laravel/laravel",
...
"require": {
...
"vapor/core": "dev-master"
},
...
"minimum-stability": "dev",
"repositories": [
<?php namespace Vapor\Theme\Composer;
use Composer\Package\PackageInterface;
use Composer\Installer\LibraryInstaller;
use Composer\Repository\InstalledRepositoryInterface;
class ThemeInstaller extends LibraryInstaller {
protected $type = 'vapor-theme';
[2014-05-01T01:43:35+00:00] INFO: Starting chef-zero on port 8889 with repository at repository at /opt/aws/opsworks/current
One version per cookbook
data_bags at /var/lib/aws/opsworks/data/data_bags
nodes at /var/lib/aws/opsworks/data/nodes
[2014-05-01T01:43:35+00:00] INFO: Forking chef instance to converge...
[2014-05-01T01:43:36+00:00] INFO: *** Chef 11.10.4 ***
[2014-05-01T01:43:36+00:00] INFO: Chef-client pid: 2379
[2014-05-01T01:43:40+00:00] INFO: Setting the run_list to ["opsworks_custom_cookbooks::load", "opsworks_custom_cookbooks::execute"] from JSON
[2014-05-01T01:43:40+00:00] WARN: Run List override has been provided.
node[:deploy].each do |application, deploy|
#in this context deploy refers to the specific application being deployed
#a default attribute can ben accessed via node[:key] as you would expect
#the issue being that we cannot override an attribute based on the specific application being deployed
#I am looking for a way to say "if the deploy node has the attribute e.g. deploy[:api][:key] use that
#otherwise fall back to node[:api][:key]
Debugging Information: all methods available in 'BlogHolder_Controller'
Debugging Information: all fields available in 'BlogHolder_Controller'
$ClassName
$Created
$LastEdited
$URLSegment
$Title
$ShowInMenus
$ShowInSearch
$Sort
<?php
class CarouselImage extends DataObject {
public static $db=array(
'Title'=>'Varchar',
'SortOrder'=>'Int'
);
public static $default_sort='SortOrder';
var theme = 'default';
var elixir = require('laravel-elixir');
var path = new require('./Path')('resources/themes/'+theme+'/assets/', 'public/themes/'+theme+'/');
var sources = require('./'+path.input('../sources.js'));
/*
|----------------------------------------------------------------
| Have a Drink!
|----------------------------------------------------------------
exec { 'install-puppet-apache':
path => '/bin:/sbin:/usr/bin:/usr/sbin',
command => 'puppet module install puppetlabs-apache',
cwd => '/home/vagrant'
}
class { 'composer::install': }
class { 'beanstalkd::install': }
# Install beanstalkd
class beanstalkd::install {
exec { 'install-beanstalkd':
path => '/bin:/sbin:/usr/bin:/usr/sbin',
command => 'apt-get install beanstalkd -y',
cwd => '/home/vagrant'
}
exec { 'install-console':
<?php
class GalleryImage extends DataObject {
private static $db = array(
'Title' => 'VarChar',
'ObjectDescription' => 'Text',
'SortOrder' => 'Int'
);
public static $default_sort = 'SortOrder';