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.
13 14 15 16 |
# File 'lib/cocoapods-patch/command/patch/apply.rb', line 13 def initialize(argv) @name = argv.shift_argument super end |
Instance Method Details
#run ⇒ Object
23 24 25 |
# File 'lib/cocoapods-patch/command/patch/apply.rb', line 23 def run apply_patch patch_file end |
#validate! ⇒ Object
18 19 20 21 |
# File 'lib/cocoapods-patch/command/patch/apply.rb', line 18 def validate! super help! 'A Pod name is required.' unless @name end |