Module: LgPodPlugin

Defined in:
lib/lg_pod_plugin.rb,
lib/lg_pod_plugin/log.rb,
lib/lg_pod_plugin/l_util.rb,
lib/lg_pod_plugin/string.rb,
lib/lg_pod_plugin/install.rb,
lib/lg_pod_plugin/l_cache.rb,
lib/lg_pod_plugin/request.rb,
lib/lg_pod_plugin/version.rb,
lib/lg_pod_plugin/git_util.rb,
lib/lg_pod_plugin/file_path.rb,
lib/lg_pod_plugin/downloader.rb

Defined Under Namespace

Classes: Error, Installer, LCache, LCachePodInfo, LDownloader, LFileManager, LGitUtil, LRequest, LUtils, String

Constant Summary collapse

VERSION =
"1.0.6"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.log(msg) ⇒ Object



23
24
25
# File 'lib/lg_pod_plugin/log.rb', line 23

def self.log(msg)
  Pod::CoreUI.puts msg
end

.log_blue(msg) ⇒ Object



11
12
13
# File 'lib/lg_pod_plugin/log.rb', line 11

def self.log_blue(msg)
  Pod::CoreUI.puts msg.blue
end

.log_green(msg) ⇒ Object



15
16
17
# File 'lib/lg_pod_plugin/log.rb', line 15

def self.log_green(msg)
  Pod::CoreUI.puts msg.green
end

.log_red(msg) ⇒ Object



7
8
9
# File 'lib/lg_pod_plugin/log.rb', line 7

def self.log_red(msg)
  Pod::CoreUI.puts msg.red
end

.log_yellow(msg) ⇒ Object



19
20
21
# File 'lib/lg_pod_plugin/log.rb', line 19

def self.log_yellow(msg)
  Pod::CoreUI.puts msg.yellow
end

Instance Method Details

#pod(name, *requirements) ⇒ Object

对 Profile 方法进行拓展



18
19
20
# File 'lib/lg_pod_plugin.rb', line 18

def pod(name, *requirements)
  Installer.new(self, name, requirements)
end