An implementation of Conway's Game of Life in 140 characters of Ruby.
Created by Simon Ernst (@sier).
namespace :db do | |
desc "Download the a full dump of the production database into the development database" | |
task :pull do | |
config = YAML::load(File.open(File.join('config', 'database.yml'))) | |
dump_database_remotely(config['production'], remote_file) | |
compress_backup_remotely(remote_file) | |
download_backup(remote_file(:compressed), local_file(:compressed)) |
An implementation of Conway's Game of Life in 140 characters of Ruby.
Created by Simon Ernst (@sier).
source "http://rubygems.org" | |
gem "cucumber" | |
gem "capybara" | |
gem "capybara-webkit", :platforms => [:ruby], :require => false, :git => "git://github.com/thoughtbot/capybara-webkit.git" | |
gem "capybara-mechanize", :git => "git://github.com/jeroenvandijk/capybara-mechanize.git" | |
gem "rspec" | |
gem "rake" | |
# ============================================================================ | |
# Info class | |
# ============================================================================ | |
class ApplicationInfo < Rails::Generators::AppGenerator | |
attr_reader :notices, :errors, :options, :data | |
def initialize | |
@notices = [] # Array of notices to display to the user at the end | |
@errors = [] # Array of errors to display to the user at the end | |
@options = [] # Array of options selected throughout the template |