This article is now published on my website: Prefer Subshells for Context.
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
A warning occurred (42 apples) | |
An error occurred |
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_Blog_Entity extends Model_Entity { | |
protected $_id; | |
protected $_title; | |
protected $_post; | |
protected $_author; | |
public function getId() { | |
return $this->_id; } | |
public function setId() { | |
$this->_id = $id; |
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
%% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*- | |
%% ex: ts=4 sw=4 et | |
%% @author Kevin Smith <kevin@opscode.com> | |
%% @copyright 2011 Opscode, Inc. | |
-module(example). | |
-behaviour(gen_server). | |
-export([start_link/0]). |
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
# 2009 Copyright Susan Potter <me at susanpotter dot net> | |
# You can read her software development rants at: http://geek.susanpotter.net | |
# Released under CreativeCommons-attribution-noncommercial-sharealike license: | |
# http://creativecommons.org/licenses/by-nc-sa/1.0/ | |
namespace :git do | |
namespace :submodule do | |
desc "Initializes submodules" | |
task :init, :roles => :app do | |
invoke_command "cd #{current_path} && git submodule init", :via => run_method | |
end |