Class: Pod::Command::Binary::Lib::Create
Constant Summary
FIRE_FLAG
Instance Method Summary
collapse
#fire_sources, #first_podspec
Constructor Details
#initialize(argv) ⇒ Create
Returns a new instance of Create.
18
19
20
21
|
# File 'lib/cocoapods-tdfire-binary/command/lib/create.rb', line 18
def initialize(argv)
@name = argv.shift_argument
super
end
|
Instance Method Details
#run ⇒ Object
28
29
30
31
32
33
34
35
36
37
|
# File 'lib/cocoapods-tdfire-binary/command/lib/create.rb', line 28
def run
argvs = [
"--template-url=#{Tdfire::BinaryUrlManager.template_lib_url}",
@name
]
create = Pod::Command::Lib::Create.new(CLAide::ARGV.new(argvs))
create.validate!
create.run
end
|
#validate! ⇒ Object
23
24
25
26
|
# File 'lib/cocoapods-tdfire-binary/command/lib/create.rb', line 23
def validate!
super
help! "必须提供有效组件名称" if @name.nil?
end
|