Skip to content

Instantly share code, notes, and snippets.

View rx's full-sized avatar
👾
Bit twiddling

Russell Edens rx

👾
Bit twiddling
View GitHub Profile
function railsapp {
template=$1
appname=$2
shift 2
rails $appname -T -d postgresql -f -m ~/dev/voomify/templates/$template.rb $@
}
railsapp engine your_engine_name
railsapp app your_app_name
rails your_engine_name -T -d postgresql -f -m ~/dev/voomify/templates/engine.rb
railsapp engine jobs
cd host
rake db:create db:migrate
rails s
cd ..
railsapp app host
mkdir host/db/migrate
cp jobs/db/migrate/* host/db/migrate
gem "jeweler"
gem 'voomify-jobs', :require=>"voomify_jobs"
cd jobs
rails g scaffold job account:string name:string description:string command:string run_every:string active:boolean
rake gem:install