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

Suprails meta commands

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

Rails-related commands

  • rails #Since the config file is functional and not declarative, this command indicates where the rails command should be executed
  • freeze #Freezes rails

Gem-related commands

  • gems.update [ gemname1 [ gemname2 [...]]] #updates the gems before using them. Updates all gems by default
  • gems.config [--development|--test|--production] [ gemname1 [ gemname2 [...]]] #Adds a gem.config line to environment.rb or the specified environment
  • @gems.unpack @ #Unpacks and freezes all supporting gems. (alias for rake gems:unpack)

Plugin-related commands

  • plugin plugin-location #executes script/plugin install plugin-location

Filesystem-related commands

  • folder foldername #creates a folder within the rails application (eg: public/stylesheets/sass)
  • file source-file dest-file #copies a file from source-file to the rails-application-local dest-file location
  • delete filename #deletes a file in the rails app folder (eg: public/index.html)
  • gpl #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 #self explanatory
  • db.create #alias for rake db:create

Rake-related commands

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

SCM-related commands

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

Facet-related commands (Suprails-specific plugins)

  • (facet-name) #Run the facet’s init command (eg: haml executes the init command of the haml facet, essentially running haml —rails AppName)
  • (facet-name).cmd #Execute some other command cmd for the facet
Clone this wiki locally