Class: Pod::Command::Binary::Assemble
Instance Method Summary
collapse
#binary_config, #first_podspec, #private_sources
Instance Method Details
#run ⇒ Object
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/cocoapods-tdfire-binary/command/assemble.rb', line 22
def run
run_commands [
'pod binary package --clean',
'pod binary lint',
'pod binary push',
'pod binary publish'
]
end
|
#run_command(command_class, argv = []) ⇒ Object
53
54
55
56
57
58
|
# File 'lib/cocoapods-tdfire-binary/command/assemble.rb', line 53
def run_command(command_class, argv = [])
lint = command_class::new(CLAide::ARGV.new(argv))
lint.validate!
lint.run
Pod::Tdfire::BinaryStateStore.printed_pods.clear
end
|
#run_commands(commands) ⇒ Object
46
47
48
49
50
51
|
# File 'lib/cocoapods-tdfire-binary/command/assemble.rb', line 46
def run_commands(commands)
commands.each do |c|
system c
break if $?.exitstatus != 0
end
end
|
#validate! ⇒ Object
17
18
19
20
|
# File 'lib/cocoapods-tdfire-binary/command/assemble.rb', line 17
def validate!
super
help! "当前目录下找不到有效的 podspec 文件" if first_podspec.nil?
end
|