Module: PMPlugin

Defined in:
lib/cocoapods-byte-panglem-beta/panglem.rb

Class Method Summary collapse

Class Method Details

.actionObject



18
19
20
21
22
23
# File 'lib/cocoapods-byte-panglem-beta/panglem.rb', line 18

def PMPlugin.action()
  recoder= PM::Recorder.instance
  if recoder.is_load_plugin
    yield(recoder) if block_given?
  end
end

.updateObject



25
26
27
28
29
30
31
32
33
34
35
# File 'lib/cocoapods-byte-panglem-beta/panglem.rb', line 25

def PMPlugin.update()
  # puts "[cocoapods-byte-panglem][debug]checking for updates..."
  command = 'gem install cocoapods-byte-panglem-beta'
  stdout, stderr, status = Open3.capture3(command)

  if status.success?
    # puts "[cocoapods-byte-panglem][debug] update sucess"
  else
    # puts "[cocoapods-byte-panglem][debug] update fail messageļ¼š#{stderr}"
  end
end