Permalink
Browse files

Cache the cedar check, because checking is slow

  • Loading branch information...
1 parent 6bd53af commit b65ca4594b7665876707be9121725a5023ed0140 @jyurek jyurek committed Sep 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/kumade/deployer.rb
@@ -55,7 +55,7 @@ def heroku(command)
def cedar?
return @cedar unless @cedar.nil?
- heroku("stack").split("\n").grep(/\*/).any? do |line|
+ @cedar = heroku("stack").split("\n").grep(/\*/).any? do |line|
line.include?("cedar")
end
end

0 comments on commit b65ca45

Please sign in to comment.