Skip to content

Instantly share code, notes, and snippets.

@tsenart
Created September 1, 2010 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsenart/560032 to your computer and use it in GitHub Desktop.
Save tsenart/560032 to your computer and use it in GitHub Desktop.
tomas:~/code/refinerycms [git:master]
⌦ git show
commit 4aed32106abcda81ab5d775b98293824075eb516
Merge: 88e9ad1 1c60c26
Author: Tomás Senart <tsenart@me.com>
Date: Wed Sep 1 01:36:36 2010 +0100
Merge remote branch 'resolve/master'
diff --cc bin/refinerycms
index 574ca69,10abd3f..6b04464
--- a/bin/refinerycms
+++ b/bin/refinerycms
@@@ -45,11 -45,11 +45,15 @@@ module Refiner
opts.on("-d DATABASE", "--database DATABASE", databases, "Select the database (default sqlite3)", " #{databases.join('/')}") do |db|
@options[:database] = db
end
+
+ opts.on("-g", "--gems gem1,gem2,gem3", Array, "Additional gems to install") do |gems|
+ @options[:gems] = gems.reject {|g| g.to_s =~ /refinery.*|rmagick/}.map {|g| "gem '#{g.to_s}'"}
+ end
+ opts.on("-g", "--gems gem1,gem2,gem3", Array, "Additional gems to install") do |gems|
+ @options[:gems] = gems.reject {|g| g.to_s =~ /^(refinerycms|rmagick)$/}.map {|g| "gem '#{g.to_s}'"}
+ end
+
opts.on("-f", "--force", "Force overwriting of directory") do
@options[:force] = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment