-
Notifications
You must be signed in to change notification settings - Fork 2
Command List
listrophy edited this page Sep 13, 2010
·
12 revisions
-
suprails.sources "foldername"
bq. defines the first place to look for source files and folders
-
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
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 "pluginlocation"
bq. executes script/plugin install pluginlocation
-
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 thefile
command
-
db.(development|test|production).(adapter|encoding|database|username|password|host) "value"
bq. self explanatory
-
db.create
bq. alias forrake "db:create"
-
rake "rake-task"
bq. run a rake task. rake-task will be checked against available tasks
-
git
bq. initialize git viagit init && git add .
-
svn
bq. (I’m not familiar with svn… could someone please update this?)
-
(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