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
36
# File 'lib/cocoapods-byte-panglem-beta/panglem.rb', line 25

def PMPlugin.update()
  if PM::Recorder.instance.is_auto_update
     puts "[cocoapods-byte-panglem-beta]checking for updates..."
    command = 'gem install cocoapods-byte-panglem-beta'
    stdout, stderr, status = Open3.capture3(command)

    if status.success?
      puts "[cocoapods-byte-panglem-beta]update sucess"
    end
  end

end