Class: Pod::Command::Binary::Pull
- Inherits:
-
Pod::Command::Binary
- Object
- Pod::Command
- Pod::Command::Binary
- Pod::Command::Binary::Pull
- Defined in:
- lib/cocoapods-tdfire-binary/command/pull.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Pull
constructor
A new instance of Pull.
- #run ⇒ Object
- #validate! ⇒ Object
Methods inherited from Pod::Command::Binary
#binary_config, #first_podspec, #private_sources
Constructor Details
#initialize(argv) ⇒ Pull
Returns a new instance of Pull.
18 19 20 21 22 |
# File 'lib/cocoapods-tdfire-binary/command/pull.rb', line 18 def initialize(argv) @name = argv.shift_argument @version = argv.shift_argument super end |
Instance Method Details
#run ⇒ Object
30 31 32 33 34 35 |
# File 'lib/cocoapods-tdfire-binary/command/pull.rb', line 30 def run UI.section("Tdfire: start pulling framework zip file ...") do UI.puts "Tdfire: get argvs: name -> #{@name}, version -> #{@version}" Pod::Tdfire::BinaryUrlManager.get_pull_url_for_pod_version(@name, @version) end end |
#validate! ⇒ Object
24 25 26 27 28 |
# File 'lib/cocoapods-tdfire-binary/command/pull.rb', line 24 def validate! super help! "必须提供有效组件名" if @name.nil? help! "必须提供有效版本号" if @version.nil? end |