Class: Pod::Command::Sign

Inherits:
DevCommand show all
Defined in:
lib/cocoapods-devtool/command/sign.rb

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Sign

Returns a new instance of Sign.



18
19
20
21
# File 'lib/cocoapods-devtool/command/sign.rb', line 18

def initialize(argv)
  @change = argv.flag?("change",false)
  super
end

Instance Method Details

#runObject



29
30
31
# File 'lib/cocoapods-devtool/command/sign.rb', line 29

def run
 self.change_project
end

#validate!Object



23
24
25
26
27
# File 'lib/cocoapods-devtool/command/sign.rb', line 23

def validate!
  super
  settingTool = UserSetting::Setting.new()
  help! "请先用pod devtool setting设置change_bundle_pre和dev_team" if settingTool.dev_team.empty? || settingTool.change_bundle_pre.empty?
end