lib/appjam/generators/gist.rb in appjam-0.1.8.4 vs lib/appjam/generators/gist.rb in appjam-0.1.8.5
- old
+ new
@@ -161,10 +161,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_git
valid_constant?(options[:gist] || name)
@gist_name = (options[:app] || name).gsub(/W/, "_").downcase