homebrew/xcfit in xcfit-4.0.4 vs homebrew/xcfit in xcfit-4.0.5
- old
+ new
@@ -1,11 +1,11 @@
#!/usr/bin/env ruby
require 'fileutils'
require 'tempfile'
-VERSION = "4.0.4"
+VERSION = "4.0.5"
@root_dir = File.expand_path('~')
@root_lib_dir = File.join(@root_dir, 'Library')
@root_developer_dir = File.join(@root_lib_dir, 'Developer')
@root_xcode_dir = File.join(@root_developer_dir, 'Xcode')
@@ -52,18 +52,27 @@
puts 'File -> New -->Target-->XCFit'
puts 'You wont need to restart Xcode but do so if nesessary!'
puts " ***************** Enjoy XCFit *****************"
end
+def setup_xcfit_podfile
+ puts '=======Creating Template Podfile for the XCFit project'
+ puts '=======You need to replace targets with your project targets and comment unwanted targets ========'
+ system("curl -s -O https://raw.githubusercontent.com/Shashikant86/XCFit/master/Cocoapods/Podfile")
+ puts "Podfile successfully created in the current working directory here at #{Dir.getwd}/Podfile"
+end
+
def print_usage
puts <<EOF
Usage: xcfit <command-name>
<command-name> can be one of
setup_xcode_templates
generate a Xcode 8 Templates for the XCUI, Fitnesse and Cucumberish
+ setup_xcfit_podfile
+ Creates template Podfile for the XCFit project covering all targets.
version
prints the XCFit version
help
prints more detailed help information.
@@ -86,10 +95,12 @@
Commands:
help : prints more detailed help information.
setup_xcode_templates : Generate a Xcode Target and File Templates for the XCUI, Fitnesse and Cucumberish
+ setup_xcfit_podfile : Creates template Podfile for the XCFit project covering all targets.
+
version : prints the XCFit version
<Options>
-v, --verbose Turns on verbose logging
EOF
@@ -101,9 +112,11 @@
cmd = ARGV.shift
if cmd == 'help'
print_help
elsif cmd == 'setup_xcode_templates'
setup_xcode_templates
+ elsif cmd == 'setup_xcfit_podfile'
+ setup_xcfit_podfile
elsif cmd == 'version'
puts "#{VERSION}"
else
print_usage
end