Class: Pod::Command::Patch::Apply
Instance Method Summary
collapse
#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
#run ⇒ Object
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
|