This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "laravel/laravel", | |
... | |
"require": { | |
... | |
"vapor/core": "dev-master" | |
}, | |
... | |
"minimum-stability": "dev", | |
"repositories": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Debugging Information: all methods available in 'BlogHolder_Controller' | |
Debugging Information: all fields available in 'BlogHolder_Controller' | |
$ClassName | |
$Created | |
$LastEdited | |
$URLSegment | |
$Title | |
$ShowInMenus | |
$ShowInSearch | |
$Sort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CarouselImage extends DataObject { | |
public static $db=array( | |
'Title'=>'Varchar', | |
'SortOrder'=>'Int' | |
); | |
public static $default_sort='SortOrder'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! | |
|---------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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': } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class GalleryImage extends DataObject { | |
private static $db = array( | |
'Title' => 'VarChar', | |
'ObjectDescription' => 'Text', | |
'SortOrder' => 'Int' | |
); | |
public static $default_sort = 'SortOrder'; |