Class: Pod::Command::Binary::Assemble

Inherits:
Pod::Command::Binary show all
Defined in:
lib/cocoapods-tdfire-binary/command/assemble.rb

Constant Summary

Constants inherited from Pod::Command::Binary

FIRE_FLAG

Instance Method Summary collapse

Methods inherited from Pod::Command::Binary

#fire_sources, #first_podspec

Instance Method Details

#runObject



21
22
23
24
25
26
# File 'lib/cocoapods-tdfire-binary/command/assemble.rb', line 21

def run
  run_command Package
  run_command Lint
  run_command Push
  run_command Publish
end

#run_command(command_class, argv = []) ⇒ Object



28
29
30
31
32
# File 'lib/cocoapods-tdfire-binary/command/assemble.rb', line 28

def run_command(command_class, argv = [])
  lint = command_class::new(CLAide::ARGV.new(argv))
  lint.validate!
  lint.run
end

#validate!Object



16
17
18
19
# File 'lib/cocoapods-tdfire-binary/command/assemble.rb', line 16

def validate!
  super
  help! "当前目录下找不到有效的 podspec 文件" if first_podspec.nil?
end