In deps you will find the use of String#p
often. There are quite a few helpers available within these instances. Check out the docs here:
This file contains hidden or 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
[user] | |
name = Bram Swenson | |
email = [email protected] | |
editor = "/usr/bin/gvim -v" | |
[github] | |
user = <github user> | |
token = <github api token> | |
password = <github password> |
This file contains hidden or 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
dep 'virtualenv.pip.install.requirements', :as, :env_name do | |
requires 'virtualenvwrapper.pip' | |
def requirements | |
"/home/#{as}/current/requirements.txt" | |
end | |
def pip_freeze | |
shell("sudo su - #{as} -c 'workon #{env_name}; pip freeze'").split("\n") | |
end |
This file contains hidden or 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 BabushkaProvisioner < Vagrant::Provisioners::Base | |
class Config < Vagrant::Config::Base | |
attr_accessor :args | |
attr_accessor :deps | |
def initialize | |
@deps = [] | |
@args = [] | |
end |
This file contains hidden or 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
Django==1.4.3 | |
MySQL-python==1.2.3 | |
PIL==1.1.7 | |
django-ajax-selects==1.2.5 | |
django-debug-toolbar==0.9.4 | |
django-extensions==1.0.2 | |
django-generic-aggregation==0.3.1 | |
git+git://github.com/mikelopez/sciweb-django-messages | |
django-postman==2.1.1 | |
django-simple-ratings==0.3.2 |
This file contains hidden or 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
D, [2013-02-27T17:51:01.003745 #17464] DEBUG -- : Terminating 4 actors... | |
D, [2013-02-27T17:51:01.005423 #17464] DEBUG -- : Shutdown completed cleanly | |
/home/shadowshell/Projects/bramswenson/celluloid-io-ssh/.bundle/bundle/ruby/1.9.1/gems/net-ssh-2.2.2/lib/net/ssh/transport/server_version.rb:68:in `negotiate!': undefined method `flush' for #<Celluloid::IO::TCPSocket:0x00000002d296f8> (NoMethodError) | |
from /home/shadowshell/Projects/bramswenson/celluloid-io-ssh/.bundle/bundle/ruby/1.9.1/gems/net-ssh-2.2.2/lib/net/ssh/transport/server_version.rb:32:in `initialize' | |
from /home/shadowshell/Projects/bramswenson/celluloid-io-ssh/.bundle/bundle/ruby/1.9.1/gems/net-ssh-2.2.2/lib/net/ssh/transport/session.rb:77:in `new' | |
from /home/shadowshell/Projects/bramswenson/celluloid-io-ssh/.bundle/bundle/ruby/1.9.1/gems/net-ssh-2.2.2/lib/net/ssh/transport/session.rb:77:in `block in initialize' | |
from /home/shadowshell/.rbenv/versions/1.9.3-p362/lib/ruby/1.9.1/timeout.rb:54:in `timeout' | |
from /h |
This file contains hidden or 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
require File.expand_path('../babushka_provisioner.rb', __FILE__) | |
Vagrant::Config.run do |config| | |
config.vm.box = "base" | |
config.vm.provision BabushkaProvisioner do |babushka| | |
babushka.dep 'some dep in your project ./babushka-deps dir' | |
end | |
end |
This file contains hidden or 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
[user] | |
name = <your name> | |
email = <your email> | |
editor = <your editor path> | |
[github] | |
user = <your github user> | |
token = <your token> | |
[core] |
This file contains hidden or 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
build_package_patched() { | |
cd source | |
wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/tcmalloc.patch' | |
wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/stdout-rouge-fix.patch' | |
patch -p1 < tcmalloc.patch | |
patch -p1 < stdout-rouge-fix.patch | |
cd .. | |
} | |
require_gcc |
This file contains hidden or 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 ruby | |
USAGE="git_branch_audit.rb <repo_dir>" | |
def bail!(message=nil) | |
message ||= USAGE | |
$stderr.puts message | |
exit 1 | |
end | |
begin |