Class: Pod::Command::Binary::Delete

Inherits:
Pod::Command::Binary show all
Defined in:
lib/cocoapods-tdfire-binary/command/delete.rb

Instance Method Summary collapse

Methods inherited from Pod::Command::Binary

#binary_config, #first_podspec, #private_sources

Constructor Details

#initialize(argv) ⇒ Delete

Returns a new instance of 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

#runObject



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