class DYAutomate::Command::WorkSpace::Update

Attributes

quiet[RW]

要查询的lib名字

Public Class Methods

new(argv) click to toggle source

#查询结果lib信息 attr_accessor :info

Calls superclass method DYAutomate::Command::WorkSpace::new
# File lib/DYAutomate/Command/Workspace/update.rb, line 21
def initialize(argv)
  # @name = argv.shift_argument
  super
end

Public Instance Methods

do_install() click to toggle source
# File lib/DYAutomate/Command/Workspace/update.rb, line 44
def do_install
  isOk = system "#{@env_str} pod update --no-repo-update"
  if isOk
    pp("pod update 成功",1)
  else
    pp("pod update 失败",1)
  end
  
  unless @isSilent
    system "sleep 3"
    system "open *.xcworkspace"
  end

end
run() click to toggle source
# File lib/DYAutomate/Command/Workspace/update.rb, line 37
def run
  pp('pod WorkSpace update run  ...',1)
  Dir.chdir(@path)
  dy_update_repo
  do_install
end
validate!() click to toggle source
# File lib/DYAutomate/Command/Workspace/update.rb, line 26
def validate!
  super
  # unless @name
  #   help! 'need the lib `NAME`.'
  # end

  # unless existAtPools?
  #   help! "the podspec file is not exist at #{Dir.pwd}."
  # end
end