Class: LgPodPlugin::Command::Doctor
- Inherits:
-
LgPodPlugin::Command
- Object
- CLAide::Command
- LgPodPlugin::Command
- LgPodPlugin::Command::Doctor
- Defined in:
- lib/command/doctor.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Doctor
constructor
A new instance of Doctor.
- #run ⇒ Object
Methods inherited from LgPodPlugin::Command
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
#run ⇒ Object
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 |