lib/snapshot/dependency_checker.rb in snapshot-0.2.4 vs lib/snapshot/dependency_checker.rb in snapshot-0.3.0
- old
+ new
@@ -2,10 +2,11 @@
class DependencyChecker
def self.check_dependencies
self.check_xcode_select
self.check_simulators
self.check_xctool
+ self.check_for_automation_subfolder
end
def self.check_xcode_select
unless `xcode-select -v`.include?"xcode-select version "
Helper.log.fatal '#############################################################'
@@ -37,9 +38,15 @@
Helper.log.error '#############################################################'
Helper.log.error "# xctool is recommended to build the apps"
Helper.log.error "# Install it using 'brew install xctool'"
Helper.log.error "# Falling back to xcode build instead "
Helper.log.error '#############################################################'
+ end
+ end
+
+ def self.check_for_automation_subfolder
+ if File.directory?"./Automation" or File.exists?"./Automation"
+ raise "Seems like you have an 'Automation' folder in the current directory. You need to delete/rename it!".red
end
end
end
end
\ No newline at end of file