Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
This file has been truncated, but you can view the full file.

Keybase proof

I hereby claim:

  • I am ryaan-anthony on github.
  • I am ryaan_anthony (https://keybase.io/ryaan_anthony) on keybase.
  • I have a public key ASDWX02IUy4nC9BoECOJM5D4C9F5jYdijPhEKpuv6DtApQo

To claim this, I am signing this object:

set -e
cp -vR #{config_dir}/config/* #{artifact_name}/config
cd #{artifact_name}
DEPLOY=$(date +"%Y%m%d%H%M%S")
rvm use ruby-2.1.6
rvm default do bundle install --local
mkdir -p /rails/apps/deploy/shared
mkdir -p /rails/apps/deploy/releases
mkdir -p /rails/apps/deploy/shared/log
mkdir -p /rails/apps/deploy/shared/tmp/pids
black=$(tput setaf 0)
red=$(tput setaf 1)
green=$(tput setaf 2)
yellow=$(tput setaf 3)
blue=$(tput setaf 4)
magenta=$(tput setaf 5)
cyan=$(tput setaf 6)
white=$(tput setaf 7)
term_reset=$(tput sgr0)
git_branch() {
#!/bin/bash
if [ -z $1 ]
then
echo 'Sitemap must be provided as first argument.';exit 2
fi
# Helper function to read xml
read_dom () {
local IFS=\>
#!/bin/bash
while read -p "> " line; do
if [[ $line == "log" ]]; then
exec >>log 2>&1
fi
echo $line
exec &>$(tty)
done
<script type="text/javascript">
class Parameters
{
constructor()
{
return new Proxy(Object.assign(this, arguments[0]), {
get: function(target, name) {
return name in target ? target[name] : undefined;
}
});
class BaseObject
def initialize(params = {})
params.each { |key,value| instance_variable_set("@#{key}", value) }
end
end
class ModelObject < BaseObject
def say
@model
end