Class: LgPodPlugin::Command::Doctor

Inherits:
LgPodPlugin::Command show all
Defined in:
lib/command/doctor.rb

Instance Method Summary collapse

Methods inherited from LgPodPlugin::Command

options, run

Constructor Details

#initialize(argv) ⇒ Doctor

Returns a new instance of Doctor.



16
17
18
19
# File 'lib/command/doctor.rb', line 16

def initialize(argv)
  # pp argv
  super
end

Instance Method Details

#runObject



21
22
23
24
25
26
27
# File 'lib/command/doctor.rb', line 21

def run
  pwd = Pathname.new(File.dirname(__FILE__)).realpath
  exexPath = pwd.parent.join("lg_pod_plugin/installer")
  FileUtils.chdir  exexPath
  pp  "sudo xattr -rd com.apple.quarantine ./PodDownload"
  result = %x(sudo xattr -rd com.apple.quarantine ./PodDownload)
end