Class: Afinstaller::Installers::IOS
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Afinstaller::Installers::IOS
- Includes:
- Thor::Actions
- Defined in:
- lib/afinstaller/installers/iOS/ios.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
12 13 14 |
# File 'lib/afinstaller/installers/iOS/ios.rb', line 12 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#clone_command ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/afinstaller/installers/iOS/ios.rb', line 16 def clone_command v = "#{version}" FileUtils::mkdir "AF#{version}-iOS" unless File.exists?("AF#{version}-iOS") FileUtils.cd("AF#{version}-iOS", :verbose => false) puts Rainbow("== Cloning Repo ==").cyan system! 'git clone -b release/v'+v+' ssh://[email protected]:7999/af/af-template-ios.git' unless File.exist?('af-template-ios') puts Rainbow("== Cloning Succeeded ==").magenta end |
#open_project_folder ⇒ Object
35 36 37 38 39 |
# File 'lib/afinstaller/installers/iOS/ios.rb', line 35 def open_project_folder puts Rainbow("== Open project folder ==").cyan system! 'open .' puts Rainbow("== AF Installer process completed. Thank you ==").magenta end |
#pod_install_command ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/afinstaller/installers/iOS/ios.rb', line 25 def pod_install_command puts Rainbow("== Moving to project folder ==").cyan FileUtils.cd('af-template-ios', :verbose => false) puts Rainbow("== Folder is now af-template-ios ==").magenta puts Rainbow("== Attempting to run pod install ==").cyan system! 'pod install' puts Rainbow("== Cocoapod installation completed ==").magenta end |