#!/bin/bash #/ NAME #/ init -- #/ #/ SYNOPSIS #/ #/ init # figure out the project root under which bin, lib live shome="$(cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)" # load a jason bourne library source "$shome/libexec/_treadstone" function main { if [[ "$#" < 1 ]]; then logger_fatal "missing application name" exit 1 fi local nm_app="$1"; shift local dollar='$' cat > "$shome/Capfile" <&1 >/dev/null; } || #{ruby_loader} bundle --local --path vendor/bundle >/dev/null" end end end # overrides namespace :deploy do task :bundle do alpha_omega.bundle.ruby end end # interesting hosts Deploy self, __FILE__ do |admin, node| if node["roles"].include("something_something") { :deploy => { } } end end EOF mkdir -p "$shome/config" cat > "$shome/config/deploy.yml" <