Permalink
Browse files

Moved auth to before api, modified to system neutral "FileUtils.remov…

…e" function from POSX-only "rm" and to Dir.chdir from cd
  • Loading branch information...
SamuelMarks committed Nov 19, 2011
1 parent fedf6a5 commit ce001721a32dd84523d9504feec074db72ef3efb
Showing with 14 additions and 5 deletions.
  1. +14 −5 install.rb
View
@@ -1,11 +1,20 @@
require 'fileutils'
version = ARGV.pop
%w( core api auth dash promo sample ).each do |framework|
%w( core auth api dash promo sample ).each do |framework|
puts "Installing #{framework}..."
`cd #{framework} && gem build spree_#{framework}.gemspec && gem install spree_#{framework}-#{version}.gem --no-ri --no-rdoc && rm spree_#{framework}-#{version}.gem`
Dir.chdir(framework) do
`gem build spree_#{framework}.gemspec`
`gem install spree_#{framework}-#{version}.gem --no-ri --no-rdoc`
FileUtils.remove "spree_#{framework}-#{version}.gem"
end
end
puts "Installing Spree..."
`gem build spree.gemspec`
`gem install spree-#{version}.gem --no-ri --no-rdoc `
`rm spree-#{version}.gem`
`gem build spree.gemspec`
`gem install spree-#{version}.gem --no-ri --no-rdoc `
FileUtils.remove "spree-#{version}.gem"

0 comments on commit ce00172

Please sign in to comment.