revoke!

revoke!() Instance Public methods

on_conflict_behavior

on_conflict_behavior(&block) Instance Protected methods

say_status

say_status(status, color, message = relative_destination) Instance Protected methods

add_source

add_source(source, options={}) Instance Public methods Add the given source to Gemfile add_source "http://gems.github.com/"

application

application(data=nil, options={}, &block) Instance Public methods Alias for: environment

capify!

capify!() Instance Public methods Just run the capify command in root capify!

environment

environment(data=nil, options={}, &block) Instance Public methods Adds a line inside the Application class for config/application.rb. If options :env is specified, the line is appended to the corresponding file in config/environments. environment do "config.autoload_paths += %W(#{config.root}/extras)" end environment(nil, env: "development") do "config.autoload_paths += %W(#{config.root}/extras)" end application

gem

gem(*args) Instance Public methods Adds an entry into Gemfile for the supplied gem. gem "rspec", group: :test gem "technoweenie-restful-authentication", lib: "restful-authentication", source: "http://gems.github.com/" gem "rails", "3.0", git: "git://github.com/rails/rails"

gem_group

gem_group(*names, &block) Instance Public methods Wraps gem entries inside a group. gem_group :development, :test do gem "rspec-rails" end

generate

generate(what, *args) Instance Public methods Generate something using a generator from Rails or a plugin. The second parameter is the argument string that is passed to the generator or an Array that is joined. generate(:authenticated, "user session")