Class: Pod::Validator
- Inherits:
-
Object
- Object
- Pod::Validator
- Defined in:
- lib/cocoapods-packager-ext/ext/validator.rb
Instance Method Summary collapse
Instance Method Details
#_xcodebuild(command, raise_on_failure = false) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/cocoapods-packager-ext/ext/validator.rb', line 6 def _xcodebuild(command, raise_on_failure = false) begin _xcodebuild_t(command, raise_on_failure) rescue => e if ENV['PUSH_BACKUP_PATH'] for item in command if item.include?(".xcworkspace") # puts command.join(' ') path = Pathname.new(item).parent puts path `mv #{path} #{ENV['PUSH_BACKUP_PATH']}` end end end raise e end end |
#_xcodebuild_t ⇒ Object
5 |
# File 'lib/cocoapods-packager-ext/ext/validator.rb', line 5 alias _xcodebuild_t _xcodebuild |