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
    h1. 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
    h1. 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)
    h1. Plugin-related commands
  • plugin _plugin-location_ #executes script/plugin install plugin-location
    h1. 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
    h1. Database-related commands
  • @db.(development|test|production).(adapter|encoding|database|username|password|host) value #self explanatory
  • db.create #alias for rake db:create
    h1. Rake-related commands
  • rake _rake-task_ #run a rake task. rake-task will be checked against available tasks
    h1. SCM-related commands
  • git #initialize git via git init && git add .
  • svn #(I’m not familiar with svn… could someone please update this?)
    h1. 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