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
class Model_Reminder extends ORM { | |
/** | |
* Constructs a new model and loads a record if given | |
* | |
* @param mixed $id Parameter for find or object to load | |
* @return void | |
*/ | |
public function __construct($id = NULL, Database $db = NULL) | |
{ |
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
ruby -v | |
ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux] | |
rails -v | |
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:827:in `report_activate_error': Could not find RubyGem rack (~> 1.0.0) (Gem::LoadError) | |
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:261:in `activate' | |
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:296:in `activate' | |
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `each' | |
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `activate' |
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
[default] Running provisioner: Vagrant::Provisioners::ChefSolo... | |
[default] Generating chef JSON and uploading... | |
[default] Running chef-solo... | |
stdin: is not a tty | |
[Wed, 23 May 2012 11:58:42 +0200] INFO: *** Chef 0.10.8 *** | |
[Wed, 23 May 2012 11:58:42 +0200] INFO: Setting the run_list to ["recipe[vagrant_main]"] from JSON | |
[Wed, 23 May 2012 11:58:42 +0200] INFO: Run List is [recipe[vagrant_main]] | |
[Wed, 23 May 2012 11:58:42 +0200] INFO: Run List expands to [vagrant_main] | |
[Wed, 23 May 2012 11:58:42 +0200] INFO: Starting Chef Run for lucid32 | |
[Wed, 23 May 2012 11:58:42 +0200] INFO: Running start handlers |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.customize ["modifyvm", :id, "--cpus", 1] | |
end |
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
Vagrant::Config.run do |config| | |
# All Vagrant configuration is done here. For a detailed explanation | |
# and listing of configuration options, please view the documentation | |
# online. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "lucid32" | |
config.vm.box_url = "http://files.vagrantup.com/lucid32.box" | |
config.vm.provision :chef_solo do |chef| |
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 | |
/** | |
* Dates Gateway | |
*/ | |
class DescribeTripGateway extends \PHPSpec\Context { | |
public function beforeAll() | |
{ |
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
#!/usr/bin/env bash | |
# call like this on the target server: | |
# CHEFREPO='git://github.com/paulsschwarz/vagrant-cookbooks.git' CHEF_ENV='production' bash <( curl -L https://raw.github.com/gist/2974764 ) | |
set -e | |
export RUBYGEMS_VERSION="1.8.24" | |
export CHEF_DIR="${HOME}/chef" | |
sudo rm -rf $CHEF_DIR | |
mkdir -p "$CHEF_DIR" |
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
template "/tmp/foo.rb" | |
source "foo.rb.erb" | |
cookbook "banana" | |
end |
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
template "/tmp/foo.rb" | |
source "foo.rb.erb" | |
cookbook "banana" | |
end |
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 FooValidator implements Validator | |
{ | |
public function __construct(Validator $validator) | |
{ | |
$this->validator = $validator | |
$this->validator->rule('name', 'not_empty') | |
->rule('name', 'max_length', [':value', 35]) | |
->rule('name', 'min_length', [':value', 5]); |
OlderNewer