Method: Pod::Command::Bin::Archive#initialize

Defined in:
lib/cocoapods-lhj-bin/command/bin/archive.rb

#initialize(argv) ⇒ Archive

Returns a new instance of Archive.


43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/cocoapods-lhj-bin/command/bin/archive.rb', line 43

def initialize(argv)
  @env = argv.option('env') || 'dev'
  CBin.config.set_configuration_env(@env)
  UI.warn "====== cocoapods-aomi-bin #{CBin::VERSION} 版本 ======== \n "
  UI.warn "======  #{@env} 环境 ======== \n "

  @code_dependencies = argv.flag?('code-dependencies')
  @framework_output = argv.flag?('framework-output', false )
  @clean = argv.flag?('no-clean', false)
  @zip = argv.flag?('zip', true)
  @all_make = argv.flag?('all-make', false )
  @sources = argv.option('sources') || []
  @platform = Platform.new(:ios)

  @config = argv.option('configuration', 'Release')

  @framework_path
  super

  @additional_args = argv.remainder!
  @spec_file = @additional_args[0]
  @build_finshed = false
end