From 47e8226fe57c9bcb99b3278e56c82d3b95ba4ebf Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Mon, 21 May 2012 11:13:47 +1000 Subject: [PATCH] WIP: adding spree_auth_devise to sandbox Gemfile This is currently NOT working. Will investigate lateR --- core/lib/generators/spree/sandbox/sandbox_generator.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/lib/generators/spree/sandbox/sandbox_generator.rb b/core/lib/generators/spree/sandbox/sandbox_generator.rb index 80d3a5041aa..2c67d0342c3 100644 --- a/core/lib/generators/spree/sandbox/sandbox_generator.rb +++ b/core/lib/generators/spree/sandbox/sandbox_generator.rb @@ -19,6 +19,15 @@ def drop_database end end + def use_spree_auth_devise + inside dummy_path do + File.open("Gemfile", "a+") do |f| + f.write %Q{gem 'spree_auth_devise', :git => "git://github.com/radar/spree_auth_devise"} + end + end + run 'bundle install' + end + protected def dummy_path 'sandbox'