Class: XCFit::Main

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/XCFit/main.rb

Instance Method Summary collapse

Instance Method Details

#setup_xcfit_fastfileObject



64
65
66
67
68
69
# File 'lib/XCFit/main.rb', line 64

def setup_xcfit_fastfile
      puts '=======Creating Template Podfile for the XCFit project'
	 puts '=======You need to replace schemes and other varibales as required ========'
	 FileUtils.cp_r($source_fastlane_dir, FileUtils.pwd())
	 puts '=======Fastlane with Fastfile setup successfully ========'
end

#setup_xcfit_podfileObject



56
57
58
59
60
61
# File 'lib/XCFit/main.rb', line 56

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

#setup_xcode_templatesObject



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/XCFit/main.rb', line 36

def setup_xcode_templates
				if File.exist?($root_xcfit_dir)
  puts "==================XXXXXXXX==========================="
				puts 'There is already XCFit directory in Xcode Templates. Looks like you are trying Fitnesse Templates '
				puts 'Templates are being installed at ~/Library/Developer/Xcode/Templates/XCFit directory'
  puts "==================XXXXXXXX==========================="
 end
   puts "==================XXXXXXXX==========================="
   puts 'Creating XCode Template for XCFit'
   puts 'This Template will allow you create Cucumberish and Fitnesse targets'
   puts "==================XXXXXXXX==========================="
   FileUtils.cp_r($source_template_dir, $root_template_dir)
   puts 'Now Your Xcode will have XCFIT iOS and macOS tagets for Cucumberish and Fitnesse'
   puts "==================XXXXXXXX==========================="
   puts 'File -> New -->Target-->XCFit'
   puts 'You wont need to restart Xcode but do so if nesessary!'
   puts " ***************** Enjoy XCFit *****************"
end

#versionObject



31
32
33
# File 'lib/XCFit/main.rb', line 31

def version
  say XCFit::VERSION
end