Class: Build::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/core_blur/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



7
8
9
10
# File 'lib/core_blur/config.rb', line 7

def initialize
  super
  init_workspace
end

Instance Attribute Details

#jenkins_urlObject

Returns the value of attribute jenkins_url.



6
7
8
# File 'lib/core_blur/config.rb', line 6

def jenkins_url
  @jenkins_url
end

Instance Method Details

#cocoapods_binary_pathObject



20
21
22
# File 'lib/core_blur/config.rb', line 20

def cocoapods_binary_path
"#{work_dir}/CocoapodsBinary"
end

#cocoapods_source_pathObject



17
18
19
# File 'lib/core_blur/config.rb', line 17

def cocoapods_source_path
  "#{work_dir}/CocoapodsSource"
end

#init_workspaceObject



38
39
40
41
42
# File 'lib/core_blur/config.rb', line 38

def init_workspace
  puts "⏩ 准备工作目录:#{work_dir}"
  FileUtils.rm_rf(work_dir)
  Dir.mkdir(work_dir)
end

#module_binary_pathObject



29
30
31
# File 'lib/core_blur/config.rb', line 29

def module_binary_path
  "#{work_dir}/ModuleBinary"
end

#module_github_pathObject



35
36
37
# File 'lib/core_blur/config.rb', line 35

def module_github_path
  "#{work_dir}/ModuleGithub"
end

#module_source_pathObject



26
27
28
# File 'lib/core_blur/config.rb', line 26

def module_source_path
  "#{work_dir}/ModuleSource"
end

#podspec_github_pathObject



32
33
34
# File 'lib/core_blur/config.rb', line 32

def podspec_github_path
  "#{work_dir}/PodspecGithub"
end

#work_dirObject



11
12
13
# File 'lib/core_blur/config.rb', line 11

def work_dir
  FileUtils.pwd + "/TempCode"
end

#xcode_package_pathObject



14
15
16
# File 'lib/core_blur/config.rb', line 14

def xcode_package_path
  "#{work_dir}/XcodePackage"
end

#xcode_shell_pathObject



23
24
25
# File 'lib/core_blur/config.rb', line 23

def xcode_shell_path
  "#{work_dir}/XcodeShell"
end