Class: CocoapodsXcodegen::Xcodeproj
- Inherits:
-
Object
- Object
- CocoapodsXcodegen::Xcodeproj
- Defined in:
- lib/xcodeproj-generate.rb
Instance Method Summary collapse
Instance Method Details
#command?(command) ⇒ Boolean
15 16 17 |
# File 'lib/xcodeproj-generate.rb', line 15 def command?(command) system("which #{ command} > /dev/null 2>&1") end |
#generate(options) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/xcodeproj-generate.rb', line 5 def generate() if !command?("xcodegen") Pod::UI.puts "😱 xcodegen not found!" return end Pod::UI.puts "Generating project" print(`xcodegen -q -s .project.yml`) end |