lib/ios_toolchain/tasks/ios/clean.rake in ios_toolchain-0.2.2 vs lib/ios_toolchain/tasks/ios/clean.rake in ios_toolchain-0.2.3

- old
+ new

@@ -2,30 +2,30 @@ namespace :ios do desc 'Cleans the build & resets simulator' task :clean => [:'clean:build'] - desc "Cleans the build" + desc 'Cleans the build' namespace :clean do task :build do - puts "Cleaning..." + puts 'Cleaning...' clean_cmd = [] clean_cmd << 'xcodebuild clean' clean_cmd << 'rm -rf build' system(clean_cmd.join("\n")) - puts "Done!" + puts 'Done!' end desc 'Resets the simulator' task :simulator do - puts "Resetting simulator..." + puts 'Resetting simulator...' system("osascript -e 'tell application \"iOS Simulator\" to quit'") && system("osascript -e 'tell application \"Simulator\" to quit'") && - system("xcrun simctl erase all") + system('xcrun simctl erase all') - puts "Done!" + puts 'Done!' end end end