Class: Pod::Command::Patch::Apply
- Inherits:
-
Pod::Command::Patch
- Object
- Pod::Command
- Pod::Command::Patch
- Pod::Command::Patch::Apply
- Defined in:
- lib/cocoapods-patch/command/patch/apply.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Apply
constructor
A new instance of Apply.
- #run ⇒ Object
- #validate! ⇒ Object
Methods inherited from Pod::Command::Patch
Constructor Details
#initialize(argv) ⇒ Apply
Returns a new instance of Apply.
11 12 13 14 |
# File 'lib/cocoapods-patch/command/patch/apply.rb', line 11 def initialize(argv) @name = argv.shift_argument super end |
Instance Method Details
#run ⇒ Object
21 22 23 |
# File 'lib/cocoapods-patch/command/patch/apply.rb', line 21 def run apply_patch patch_file end |
#validate! ⇒ Object
16 17 18 19 |
# File 'lib/cocoapods-patch/command/patch/apply.rb', line 16 def validate! super help! 'A Pod name is required.' unless @name end |