class DYAutomate::Command::WorkSpace::Install

Public Class Methods

new(argv) click to toggle source

#要查询的lib名字 attr_accessor :name #查询结果lib信息 attr_accessor :info

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

Public Instance Methods

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

end
run() click to toggle source
# File lib/DYAutomate/Command/Workspace/install.rb, line 38
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/install.rb, line 27
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