class Pod::Command::Deintegrate
@CocoaPods 1.0.0.beta.1
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
# File lib/cocoapods/command/deintegrate.rb, line 20 def initialize(argv) path = argv.shift_argument @project_path = Pathname.new(path) if path super end
Public Instance Methods
run()
click to toggle source
# File lib/cocoapods/command/deintegrate.rb, line 43 def run # We don't traverse a Podfile and try to de-intergrate each target. # Instead, we're just deintegrating anything CP could have done to a # project. This is so that it will clean stale, and modified projects. deintegrator = Deintegrator.new deintegrator.deintegrate_project(@project) @project.save end
validate!()
click to toggle source
Calls superclass method
# File lib/cocoapods/command/deintegrate.rb, line 26 def validate! super unless @project_path xcodeprojs = Pathname.glob('*.xcodeproj') @project_path = xcodeprojs.first if xcodeprojs.size == 1 end help! 'A valid Xcode project file is required.' unless @project_path help! "#{@project_path} does not exist." unless @project_path.exist? unless @project_path.directory? && (@project_path + 'project.pbxproj').exist? help! "#{@project_path} is not a valid Xcode project." end @project = Xcodeproj::Project.open(@project_path) end