Skip to content

Instantly share code, notes, and snippets.

View ozzyaaron's full-sized avatar

Aaron Todd ozzyaaron

View GitHub Profile
We couldn’t find that file to show.
We couldn’t find that file to show.
We couldn’t find that file to show.
We couldn’t find that file to show.
class AppBuilder < Rails::AppBuilder
include Thor::Actions
include Thor::Shell
def app
create_gemfile
end
def test
rspec
class AppBuilder < Rails::AppBuilder
include Thor::Actions
include Thor::Shell
def app
create_gemfile
system("bundle")
end
def test
* == Currently executing `passenger:restart'
* executing "mkdir -p /var/vhosts/sapphire.tfgdev.com.au/releases/20110504030221/tmp && touch /var/vhosts/sapphire.tfgdev.com.au/releases/20110504030221/tmp/restart.txt"
servers: ["broadside.thefrontiergroup.net.au"]
[[email protected]] executing command
command finished in 578ms
triggering after callbacks for `passenger:restart'
* == Currently executing `deploy:hit_it'
Hitting server sapphire.tfgdev.com.au
triggering after callbacks for `deploy'
* == Currently executing `deploy:migrate'
class FixMsfChargeSettings < ActiveRecord::Migration
class SettingDefinition < ActiveRecord::Base; end
class Setting < ActiveRecord::Base; end
def self.up
definition = SettingDefinition.find(:first, :conditions => { :key => "msf_rate_amex_diners" })
definition.update_attribute(:setting_type, "string")
definition.settings.each do |setting|
setting.update_attribute(:setting_type, "string")
class FixMsfChargeSettings < ActiveRecord::Migration
class ::Setting < ActiveRecord::Base; end
class SettingDefinition < ActiveRecord::Base
has_many :settings
end
source 'http://rubygems.org'
gem "rails", "~>3.0.7"
gem "mail"
gem "i18n"
# Database
gem "pg"
# Authentication + Authorization