Class: Pod::Command::Patch::Apply

Inherits:
Pod::Command::Patch show all
Defined in:
lib/cocoapods-patch/command/patch/apply.rb

Instance Method Summary collapse

Methods inherited from Pod::Command::Patch

#patch_file

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

#runObject



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