lib/shelly/app.rb in shelly-0.0.50.pre vs lib/shelly/app.rb in shelly-0.0.50.pre2
- old
+ new
@@ -107,10 +107,10 @@
def self.guess_code_name
guessed = nil
if Cloudfile.present?
clouds = Cloudfile.new.clouds
- if clouds.grep(/staging/)
+ if clouds.grep(/staging/).present?
guessed = "production"
production_clouds = clouds.grep(/production/)
production_clouds.sort.each do |cloud|
cloud =~ /production(\d*)/
guessed = "production#{$1.to_i+1}"