Class: Pod::Command::Binary::Delete
- Inherits:
-
Pod::Command::Binary
- Object
- Pod::Command
- Pod::Command::Binary
- Pod::Command::Binary::Delete
- Defined in:
- lib/cocoapods-tdfire-binary/command/delete.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Delete
constructor
A new instance of Delete.
- #run ⇒ Object
- #validate! ⇒ Object
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
#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 |