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

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

Instance Method Summary collapse

Methods inherited from Pod::Command::Patch

#patch_file, #patches_path

Constructor Details

#initialize(argv) ⇒ Apply

Returns a new instance of Apply.



13
14
15
16
# File 'lib/pod/command/patch/apply.rb', line 13

def initialize(argv)
  @name = argv.shift_argument
  super
end

Instance Method Details

#runObject



23
24
25
# File 'lib/pod/command/patch/apply.rb', line 23

def run
  apply_patch patch_file
end

#validate!Object



18
19
20
21
# File 'lib/pod/command/patch/apply.rb', line 18

def validate!
  super
  help! 'A Pod name is required.' unless @name
end