Class: FWToolkit::Cocoapods
Instance Method Summary
collapse
#run, #run!, #run_base, #template_directory
Instance Method Details
#install(project_root) ⇒ Object
17
18
19
20
21
22
23
24
|
# File 'lib/fwtoolkit/cli/cocoapods.rb', line 17
def install(project_root)
add_cocoapods_to_project project_root
if File.exists? File.join(project_root, 'Podfile')
inside(project_root) { run! "rvm #{IO.read('.ruby-version').gsub("\n", '')}@#{IO.read('.ruby-gemset').gsub("\n", '')} do bundle exec pod install", :capture => true }
else
say_status :skip, "Unable to locate the Podfile. Skipping pod install", :blue
end
end
|
#setup ⇒ Object
11
12
13
14
|
# File 'lib/fwtoolkit/cli/cocoapods.rb', line 11
def setup
install_cocoapods_gem unless options[:'skip-install']
setup_cocoapods_repos
end
|