homebrew/xcfit in xcfit-4.0.0 vs homebrew/xcfit in xcfit-4.0.1
- old
+ new
@@ -1,11 +1,11 @@
#!/usr/bin/env ruby
require 'fileutils'
require 'tempfile'
-VERSION = "4.0.0"
+VERSION = "4.0.1"
@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')
@@ -51,32 +51,18 @@
puts 'File -> New -->Target-->XCFit'
puts 'You wont need to restart Xcode but do so if nesessary!'
puts " ***************** Enjoy XCFit *****************"
end
-def setup_fitnesse_templates
- puts "==================XXXXXXXX==========================="
- puts 'Downloading Fitnesse Templates'
- puts "==================XXXXXXXX==========================="
- system("cd /tmp && curl -sL https://github.com/Shashikant86/OCSlimProjectXcodeTemplates/archive/2.0.0.tar.gz| tar xz")
- system("cd /tmp/OCSlimProjectXcodeTemplates-2.0.0/ && make")
- puts "==================XXXXXXXX==========================="
- puts "=======Created Xcode Templates for the Fitnesse ===="
- puts "==================XXXXXXXX==========================="
-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 and Cucumberish
- setup_fitnesse_templates
- generate a Xcode 8 Templates for Fitnesse
+ generate a Xcode 8 Templates for the XCUI, Fitnesse and Cucumberish
version
prints the XCFit version
help
prints more detailed help information.
@@ -92,20 +78,17 @@
Usage: xcfit <command-name>
<command-name> can be one of
help
setup_xcode_templates
- setup_fitnesse_templates
version
Commands:
help : prints more detailed help information.
- setup_xcode_templates : Generate a Xcode Target and File Templates for the XCUI and Cucumberish
+ setup_xcode_templates : Generate a Xcode Target and File Templates for the XCUI, Fitnesse and Cucumberish
- setup_fitnesse_templates : Generate Xcode templates for the Fitnesse
-
version : prints the XCFit version
<Options>
-v, --verbose Turns on verbose logging
EOF
@@ -117,11 +100,9 @@
cmd = ARGV.shift
if cmd == 'help'
print_help
elsif cmd == 'setup_xcode_templates'
setup_xcode_templates
- elsif cmd == 'setup_fitnesse_templates'
- setup_fitnesse_templates
elsif cmd == 'version'
puts "#{VERSION}"
else
print_usage
end