class CocoapodsXcodegen::Xcodeproj

Public Instance Methods

command?(command) click to toggle source
# File lib/xcodeproj-generate.rb, line 15
def command?(command)
    system("which #{ command} > /dev/null 2>&1")
end
generate(options) click to toggle source
# File lib/xcodeproj-generate.rb, line 5
def generate(options)
    if !command?("xcodegen")
        Pod::UI.puts "😱 xcodegen not found!"
        return
    end
    
    Pod::UI.puts "Generating project"
    print(`xcodegen -q -s .project.yml`)
end