Class: Pod::Command::Binary::Delete
Instance Method Summary
collapse
#binary_config, #first_podspec, #private_sources
Constructor Details
#initialize(argv) ⇒ Delete
19
20
21
22
23
|
# File 'lib/cocoapods-tdfire-binary/command/delete.rb', line 19
def initialize(argv)
@name = argv.shift_argument
@version = argv.shift_argument
super
end
|
Instance Method Details
#run ⇒ Object
31
32
33
34
35
|
# File 'lib/cocoapods-tdfire-binary/command/delete.rb', line 31
def run
UI.section("Tdfire: deleting binary file #{@name} #{@version} ...") do
Pod::Tdfire::BinaryUrlManager.delete_binary(@name, @version)
end
end
|
#validate! ⇒ Object
25
26
27
28
29
|
# File 'lib/cocoapods-tdfire-binary/command/delete.rb', line 25
def validate!
super
help! "必须为删除组件指定名称" if @name.nil?
help! "必须为删除组件指定版本" if @version.nil?
end
|