Skip to content

Instantly share code, notes, and snippets.

@woodie
Created November 23, 2010 08:23
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woodie/711454 to your computer and use it in GitHub Desktop.
Save woodie/711454 to your computer and use it in GitHub Desktop.
gem install dubious
$ sudo jruby -S gem install dubious
Successfully installed bitescript-0.0.7
Successfully installed mirah-0.0.4-java
Successfully installed thor-0.13.8
Successfully installed activesupport-3.0.3
Successfully installed i18n-0.4.2
Successfully installed appengine-sdk-1.3.8
Successfully installed dubious-0.0.1-java
7 gems installed
$ jruby -S dubious new my-app
create my-app
create my-app/Rakefile
create my-app/app/controllers/application_controller.mirah
create my-app/config/application.properties
create my-app/config/asset.properties
create my-app/config/build.properties
create my-app/config/routes.properties
create my-app/public/404.html
create my-app/public/422.html
create my-app/public/500.html
create my-app/public/favicon.ico
create my-app/public/index.html
create my-app/public/robots.txt
create my-app/public/images/appengine_duby.png
create my-app/public/images/back.gif
create my-app/public/images/dir.gif
create my-app/public/images/dubious.png
create my-app/public/images/file.gif
create my-app/public/images/silver-120x30.gif
create my-app/public/javascripts/jquery.rails.min.js
create my-app/public/stylesheets/main.css
create my-app/public/stylesheets/scaffold.css
create my-app/WEB-INF/app.yaml
create my-app/WEB-INF/lib/dubious.jar
create my-app/WEB-INF/lib/dubydatastore.jar
$ cd my-app
$ dubious generate controller contacts
create app/controllers/contacts_controller.mirah
create app/views/contacts
inject WEB-INF/app.yaml
$ dubious generate model contact
create app/models/contact.mirah
$ dubious generate scaffold person name:String description:Text
Could not find task "scaffold".
import dubious.*
import models.*
class ContactController < ApplicationController
end
import com.google.appengine.ext.duby.db.Model
import com.google.appengine.api.datastore.*
class Contact < Model
end
application: my-app
version: duby
runtime: java
public_root: /public
resource_files:
- exclude: /build/**
handlers:
- url: /contacts/*
servlet: controllers.ContactController
name: contacts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment