Skip to content
listrophy edited this page Sep 13, 2010 · 12 revisions

Suprails meta commands

  • suprails.sources "foldername"
    bq. defines the first place to look for source files and folders

Rails-related commands

  • rails
    bq. Since the config file is functional and not declarative, this command indicates where the rails command should be executed
  • freeze
    bq. Freezes rails
  • generate :generator [ "optional_argument" [ :optional_argument2 [...]]]
    bq. Run a generator

Gem-related commands

If a gem’s name doesn’t contain invalid characters, you can use a symbol. For example: :rspec. Unfortunately, if there are invalid characters in the name of the gem – such as a hyphen – you must use a string: "rspec-rails".

  • gems.config [--development|--test|--production] [ :gemname1 [ "gemname2" [...]]]
    bq. Adds gem.config lines to environment.rb (default) or the specified environment. This is basically how you “add” gems to a rails app.
  • gems.update [ "gemname1" [ :gemname2 [...]]]
    bq. updates the gems before using them. Updates all system gems by default
  • gems.unpack
    bq. Unpacks and freezes all supporting gems. (alias for rake gems:unpack)

Plugin-related commands

  • plugin "pluginlocation"
    bq. executes script/plugin install pluginlocation

Filesystem-related commands

  • folder "foldername"
    bq. creates a folder within the rails application (eg: public/stylesheets/sass)
  • file "sourcefile" "destfile"
    bq. copies a file from sourcefile to the rails-application-local destfile location
  • delete "filename"
    bq. deletes a file in the rails app folder (eg: public/index.html)
  • gpl
    bq. creates a COPYING file in the rails app that contains GPLv3. Note that other licenses may be installed with the file command

Database-related commands

  • db.(development|test|production).(adapter|encoding|database|username|password|host) "value"
    bq. self explanatory
  • db.create
    bq. alias for rake "db:create"

Rake-related commands

  • rake "rake-task"
    bq. run a rake task. rake-task will be checked against available tasks

SCM-related commands

  • git
    bq. initialize git via git init && git add .
  • svn
    bq. (I’m not familiar with svn… could someone please update this?)

Facet-related commands (Suprails-specific plugins)

  • (facet-name)
    bq. Run the facet’s init command (eg: haml executes the init command of the haml facet, essentially running haml —rails AppName)
  • (facet-name).cmd [:optional_arguments]
    bq. Execute some other command cmd for the facet