Skip to content

Instantly share code, notes, and snippets.

@mmurray
Created September 7, 2010 21:40
Show Gist options
  • Save mmurray/569169 to your computer and use it in GitHub Desktop.
Save mmurray/569169 to your computer and use it in GitHub Desktop.
$ beet -g ftc -r="rails3/js/jquery, rails3/db/mysql, rails3/auth/devise, rails3/git"
Generating rails 3 project ftc...
create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/views/layouts/application.html.erb
create app/mailers
create app/models
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create log
create log/server.log
create log/production.log
create log/development.log
create log/test.log
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/index.html
create public/robots.txt
create public/images
create public/images/rails.png
create public/stylesheets
create public/stylesheets/.gitkeep
create public/javascripts
create public/javascripts/application.js
create public/javascripts/controls.js
create public/javascripts/dragdrop.js
create public/javascripts/effects.js
create public/javascripts/prototype.js
create public/javascripts/rails.js
create script
create script/rails
create test
create test/performance/browsing_test.rb
create test/test_helper.rb
create test/fixtures
create test/functional
create test/integration
create test/unit
create tmp
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create vendor/plugins
create vendor/plugins/.gitkeep
gem jquery-rails
executing bundle install from /Users/michaelmurray/Documents/Aptana Studio 3 Workspace/ftc
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.0.rc)
Using builder (2.1.2)
Using i18n (0.4.1)
Using activemodel (3.0.0.rc)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.4)
Using tzinfo (0.3.23)
Using actionpack (3.0.0.rc)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.8)
Using mail (2.2.5)
Using actionmailer (3.0.0.rc)
Using arel (0.4.0)
Using activerecord (3.0.0.rc)
Using activeresource (3.0.0.rc)
Using bundler (1.0.0.rc.5)
Using thor (0.14.0)
Using railties (3.0.0.rc)
Using rails (3.0.0.rc)
Using jquery-rails (0.1.2)
Using sqlite3-ruby (1.3.1)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Your bundle was installed to `/Users/michaelmurray/.rvm/gems/ruby-1.9.2-head`
generating jquery:install --ui
remove public/javascripts/controls.js
remove public/javascripts/dragdrop.js
remove public/javascripts/effects.js
remove public/javascripts/prototype.js
create public/javascripts/jquery.min.js
create public/javascripts/jquery.js
create public/javascripts/jquery-ui.min.js
create public/javascripts/jquery-ui.js
conflict public/javascripts/rails.js
Overwrite /Users/michaelmurray/Documents/Aptana Studio 3 Workspace/ftc/public/javascripts/rails.js? (enter "h" for help) [Ynaqdh] Y
force public/javascripts/rails.js
gem mysql
executing bundle install from /Users/michaelmurray/Documents/Aptana Studio 3 Workspace/ftc
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.0.rc)
Using builder (2.1.2)
Using i18n (0.4.1)
Using activemodel (3.0.0.rc)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.4)
Using tzinfo (0.3.23)
Using actionpack (3.0.0.rc)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.8)
Using mail (2.2.5)
Using actionmailer (3.0.0.rc)
Using arel (0.4.0)
Using activerecord (3.0.0.rc)
Using activeresource (3.0.0.rc)
Using bundler (1.0.0.rc.5)
Using thor (0.14.0)
Using railties (3.0.0.rc)
Using rails (3.0.0.rc)
Using jquery-rails (0.1.2)
Using mysql (2.8.1)
Using sqlite3-ruby (1.3.1)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Your bundle was installed to `/Users/michaelmurray/.rvm/gems/ruby-1.9.2-head`
file config/database.yml
Create databases using rake db:create:all?
> Y
rake db:create:all
(in /Users/michaelmurray/Documents/Aptana Studio 3 Workspace/ftc)
ftc_development already exists
ftc_test already exists
ftc_production already exists
gem devise
generating devise:install
create config/initializers/devise.rb
create config/locales/devise.en.yml
===============================================================================
Some setup you must do manually if you haven't yet:
1. Setup default url options for your specific environment. Here is an
example of development environment:
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
This is a required Rails configuration. In production it must be the
actual host of your application
2. Ensure you have defined root_url to *something* in your config/routes.rb.
For example:
root :to => "home#index"
3. Ensure you have flash messages in app/views/layouts/application.html.erb.
For example:
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
===============================================================================
generating devise User
invoke active_record
create app/models/user.rb
invoke test_unit
create test/unit/user_test.rb
create test/fixtures/users.yml
create db/migrate/20100907213940_devise_create_users.rb
inject app/models/user.rb
route devise_for :users
generating devise:views
create app/views/devise
create app/views/devise/confirmations/new.html.erb
create app/views/devise/mailer/confirmation_instructions.html.erb
create app/views/devise/mailer/reset_password_instructions.html.erb
create app/views/devise/mailer/unlock_instructions.html.erb
create app/views/devise/passwords/edit.html.erb
create app/views/devise/passwords/new.html.erb
create app/views/devise/registrations/edit.html.erb
create app/views/devise/registrations/new.html.erb
create app/views/devise/sessions/new.html.erb
create app/views/devise/shared/_links.erb
create app/views/devise/unlocks/new.html.erb
rake db:migrate
(in /Users/michaelmurray/Documents/Aptana Studio 3 Workspace/ftc)
== DeviseCreateUsers: migrating ==============================================
-- create_table(:users)
-> 0.1350s
-- add_index(:users, :email, {:unique=>true})
-> 0.1558s
-- add_index(:users, :reset_password_token, {:unique=>true})
-> 0.1078s
== DeviseCreateUsers: migrated (0.3990s) =====================================
running git init
Initialized empty Git repository in /Users/michaelmurray/Documents/Aptana Studio 3 Workspace/ftc/.git/
running git add .
running git commit -m 'Initial commit from Beet. Enjoy.'
[master (root-commit) 453bf00] Initial commit from Beet. Enjoy.
Committer: Mike Murray <[email protected]>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email [email protected]
If the identity used for this commit is wrong, you can fix it with:
git commit --amend --author='Your Name <[email protected]>'
59 files changed, 19721 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
create mode 100644 Gemfile
create mode 100644 Gemfile.lock
create mode 100644 README
create mode 100644 Rakefile
create mode 100644 app/controllers/application_controller.rb
create mode 100644 app/helpers/application_helper.rb
create mode 100644 app/models/user.rb
create mode 100644 app/views/devise/confirmations/new.html.erb
create mode 100644 app/views/devise/mailer/confirmation_instructions.html.erb
create mode 100644 app/views/devise/mailer/reset_password_instructions.html.erb
create mode 100644 app/views/devise/mailer/unlock_instructions.html.erb
create mode 100644 app/views/devise/passwords/edit.html.erb
create mode 100644 app/views/devise/passwords/new.html.erb
create mode 100644 app/views/devise/registrations/edit.html.erb
create mode 100644 app/views/devise/registrations/new.html.erb
create mode 100644 app/views/devise/sessions/new.html.erb
create mode 100644 app/views/devise/shared/_links.erb
create mode 100644 app/views/devise/unlocks/new.html.erb
create mode 100644 app/views/layouts/application.html.erb
create mode 100644 config.ru
create mode 100644 config/application.rb
create mode 100644 config/boot.rb
create mode 100644 config/database.yml
create mode 100644 config/database.yml.example
create mode 100644 config/environment.rb
create mode 100644 config/environments/development.rb
create mode 100644 config/environments/production.rb
create mode 100644 config/environments/test.rb
create mode 100644 config/initializers/backtrace_silencers.rb
create mode 100644 config/initializers/devise.rb
create mode 100644 config/initializers/inflections.rb
create mode 100644 config/initializers/mime_types.rb
create mode 100644 config/initializers/secret_token.rb
create mode 100644 config/initializers/session_store.rb
create mode 100644 config/locales/devise.en.yml
create mode 100644 config/locales/en.yml
create mode 100644 config/routes.rb
create mode 100644 db/migrate/20100907213940_devise_create_users.rb
create mode 100644 db/schema.rb
create mode 100644 db/seeds.rb
create mode 100644 doc/README_FOR_APP
create mode 100644 lib/tasks/.gitkeep
create mode 100644 public/404.html
create mode 100644 public/422.html
create mode 100644 public/500.html
create mode 100644 public/favicon.ico
create mode 100644 public/images/rails.png
create mode 100644 public/index.html
create mode 100644 public/javascripts/application.js
create mode 100644 public/javascripts/jquery-ui.js
create mode 100644 public/javascripts/jquery-ui.min.js
create mode 100644 public/javascripts/jquery.js
create mode 100644 public/javascripts/jquery.min.js
create mode 100644 public/javascripts/rails.js
create mode 100644 public/robots.txt
create mode 100644 public/stylesheets/.gitkeep
create mode 100755 script/rails
create mode 100644 test/fixtures/users.yml
create mode 100644 test/performance/browsing_test.rb
create mode 100644 test/test_helper.rb
create mode 100644 test/unit/user_test.rb
create mode 100644 vendor/plugins/.gitkeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment