Class: Pod::Command::Binary::Pull
Constant Summary
FIRE_FLAG
Instance Method Summary
collapse
#fire_sources, #first_podspec
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
|