lib/appjam/generators/jam.rb in appjam-0.1.8.4 vs lib/appjam/generators/jam.rb in appjam-0.1.8.5

- old
+ new

@@ -32,10 +32,11 @@ class_option :root, :desc => "The root destination", :aliases => '-r', :default => ".", :type => :string class_option :destroy, :aliases => '-d', :default => false, :type => :boolean def in_app_root? - File.exist?('Classes') + # File.exist?('Classes') + Dir.glob("*.xcodeproj").count >= 1 end def create_jam valid_constant?(options["#{self.to_s.downcase.intern}"] || name) @jam_name = (options["#{self.to_s.downcase.intern}"] || name).gsub(/\W/, "_").downcase \ No newline at end of file