Permalink
Browse files

Some crufty output is now suppressed/removed

  • Loading branch information...
1 parent 02706ed commit b4e8bfb88f5ef521f68bad038191334400b63382 @ianwhite committed Nov 27, 2008
Showing with 7 additions and 8 deletions.
  1. +2 −1 History.txt
  2. +1 −1 Todo.txt
  3. +4 −6 lib/garlic/target.rb
View
3 History.txt
@@ -1,7 +1,8 @@
== Edge
* minor enhancements
- * Updated Readme/TDOD
+ * Updated Readme/TODO
+ * Some crufty output is now suppressed/removed
== 0.1.5 2008-11-25
View
2 Todo.txt
@@ -1,4 +1,4 @@
* add 'gem' command - should it freeze the gem in to vendor/gems?
-* BETTER OUTPUT - less uninteresting cruft in the output please
+* BETTER OUTPUT - even less uninteresting cruft in the output please
* specs!
* cucumber features!
View
10 lib/garlic/target.rb
@@ -58,26 +58,24 @@ def install_rails
puts "Rails app for #{name} exists"
else
puts "Creating rails app for #{name}..."
- sh "ruby #{rails_repo.path}/railties/bin/rails #{path}", :verbose => false
+ `ruby #{rails_repo.path}/railties/bin/rails #{path}`
end
- install_dependency(rails_repo, 'vendor/rails') { sh "rake rails:update" }
+ install_dependency(rails_repo, 'vendor/rails') { `rake rails:update` }
end
def install_dependency(repo, install_path = ".", options = {}, &block)
repo = garlic.repo(repo) unless repo.is_a?(Repo)
tree_ish = Repo.tree_ish(options)
- puts tree_ish
-
if options[:clone]
if Repo.path?(install_path)
puts "#{install_path} exists, and is a repo"
- cd(install_path) { sh "git fetch origin" }
+ cd(install_path) { `git fetch origin` }
else
puts "cloning #{repo.name} to #{install_path}"
repo.clone_to(File.join(path, install_path))
end
- cd(install_path) { sh "git checkout #{tree_ish || repo.head_sha}" }
+ cd(install_path) { `git checkout #{tree_ish || repo.head_sha}` }
else
if read_sha(install_path) == repo.head_sha

0 comments on commit b4e8bfb

Please sign in to comment.