Sha256: aad589ec41e84af14e08e31d1085fcfbd17dfcc423aed7440d8bb22890565f70

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

# create rvmrc file
# create_file ".rvmrc", "rvm gemset create '#{app_name}' \nrvm gemset use '#{app_name}'"

after_bundler do
  # clean up rails defaults
  remove_file "public/index.html"
  remove_file "public/images/rails.png"
  generate "controller home index"
  gsub_file "app/controllers/home_controller.rb", /def index/, <<-RUBY
def index
    flash.now[:notice] = "Welcome! - love Engine Yard Rails Wizard"
RUBY
  route "root :to => 'home#index'"
  
  run "mv README.rdoc RAILS_README.rdoc"
  remove_file "README.rdoc"
  create_file "README.md", <<-README
# ReadMe


## Deployment

```
ey deploy
```

## Thanks

The original scaffold for this application was created by [Engine Yard Rails Wizard](http://railswizard.engineyard.com).

The project was created with the following scrolls:

#{ scrolls.map {|r| "* #{r}"}.join("\n")}

README

  if scrolls.include? 'git'
    append_file ".gitignore", "\nconfig/database.yml"
    append_file ".gitignore", "\npublic/system"
  end
  
end

after_everything do
  rake "db:migrate"
end

__END__

name: Rails Basics
description: Best practices for new Rails apps
author: drnic

run_before: [git]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ey_rails_wizard-0.6.0 scrolls/rails_basics.rb