Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Example output for the blog-tutorial of Padrino for admin creation (http://padrinorb.com/guides/getting-started/blog-tutorial/)
$ padrino g admin
force .components
create admin
exist admin
create admin/controllers/base.rb
create admin/controllers/sessions.rb
create public/admin
create public/admin/images/favicon.ico
create public/admin/images/font/FontAwesome.otf
create public/admin/images/font/fontawesome-webfont.eot
create public/admin/images/font/fontawesome-webfont.svg
create public/admin/images/font/fontawesome-webfont.ttf
create public/admin/images/font/fontawesome-webfont.woff
create public/admin/images/logo.png
create public/admin/javascripts/application.js
create public/admin/javascripts/bootstrap/affix.js
create public/admin/javascripts/bootstrap/alert.js
create public/admin/javascripts/bootstrap/bootstrap.min.js
create public/admin/javascripts/bootstrap/button.js
create public/admin/javascripts/bootstrap/carousel.js
create public/admin/javascripts/bootstrap/collapse.js
create public/admin/javascripts/bootstrap/dropdown.js
create public/admin/javascripts/bootstrap/modal.js
create public/admin/javascripts/bootstrap/popover.js
create public/admin/javascripts/bootstrap/scrollspy.js
create public/admin/javascripts/bootstrap/tab.js
create public/admin/javascripts/bootstrap/tooltip.js
create public/admin/javascripts/bootstrap/transition.js
create public/admin/javascripts/jquery-1.11.0.min.js
create public/admin/stylesheets/application.css
create public/admin/stylesheets/bootstrap.css
create public/admin/stylesheets/fonts/FontAwesome.otf
create public/admin/stylesheets/fonts/fontawesome-webfont.eot
create public/admin/stylesheets/fonts/fontawesome-webfont.svg
create public/admin/stylesheets/fonts/fontawesome-webfont.ttf
create public/admin/stylesheets/fonts/fontawesome-webfont.woff
create admin/app.rb
insert config/apps.rb
apply orms/sequel
apply tests/rspec
create models/account.rb
create spec/models/account_spec.rb
create db/migrate/001_create_accounts.rb
create admin/views/accounts
create admin/controllers/accounts.rb
create admin/views/accounts/_form.haml
create admin/views/accounts/edit.haml
create admin/views/accounts/index.haml
create admin/views/accounts/new.haml
insert admin/app.rb
force models/account.rb
create db/seeds.rb
exist admin/controllers
exist admin/views
create admin/views/base
create admin/views/layouts
create admin/views/sessions
create admin/views/errors
create admin/views/base/index.haml
create admin/views/layouts/application.haml
create admin/views/layouts/error.haml
create admin/views/sessions/new.haml
create admin/views/errors/403.haml
create admin/views/errors/404.haml
create admin/views/errors/500.haml
insert admin/app.rb
insert Gemfile
insert Gemfile
gsub admin/controllers/accounts.rb
=================================================================
The admin panel has been mounted! Next, follow these steps:
=================================================================
1) Run 'bundle'
2) Run 'bundle exec rake db:create' if you have not created a database yet
3) Run 'bundle exec rake db:migrate'
4) Run 'bundle exec rake db:seed'
5) Visit the admin panel in the browser at '/admin'
=================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment