Class: Build::Config
- Inherits:
-
Object
- Object
- Build::Config
- Includes:
- Singleton
- Defined in:
- lib/core_blur/config.rb
Instance Attribute Summary collapse
-
#jenkins_url ⇒ Object
Returns the value of attribute jenkins_url.
Instance Method Summary collapse
- #cocoapods_binary_path ⇒ Object
- #cocoapods_source_path ⇒ Object
- #init_workspace ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #module_binary_path ⇒ Object
- #module_github_path ⇒ Object
- #module_source_path ⇒ Object
- #podspec_github_path ⇒ Object
- #work_dir ⇒ Object
- #xcode_package_path ⇒ Object
- #xcode_shell_path ⇒ Object
Constructor Details
#initialize ⇒ Config
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_url ⇒ Object
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_path ⇒ Object
20 21 22 |
# File 'lib/core_blur/config.rb', line 20 def cocoapods_binary_path "#{work_dir}/CocoapodsBinary" end |
#cocoapods_source_path ⇒ Object
17 18 19 |
# File 'lib/core_blur/config.rb', line 17 def cocoapods_source_path "#{work_dir}/CocoapodsSource" end |
#init_workspace ⇒ Object
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_path ⇒ Object
29 30 31 |
# File 'lib/core_blur/config.rb', line 29 def module_binary_path "#{work_dir}/ModuleBinary" end |
#module_github_path ⇒ Object
35 36 37 |
# File 'lib/core_blur/config.rb', line 35 def module_github_path "#{work_dir}/ModuleGithub" end |
#module_source_path ⇒ Object
26 27 28 |
# File 'lib/core_blur/config.rb', line 26 def module_source_path "#{work_dir}/ModuleSource" end |
#podspec_github_path ⇒ Object
32 33 34 |
# File 'lib/core_blur/config.rb', line 32 def podspec_github_path "#{work_dir}/PodspecGithub" end |
#work_dir ⇒ Object
11 12 13 |
# File 'lib/core_blur/config.rb', line 11 def work_dir FileUtils.pwd + "/TempCode" end |
#xcode_package_path ⇒ Object
14 15 16 |
# File 'lib/core_blur/config.rb', line 14 def xcode_package_path "#{work_dir}/XcodePackage" end |
#xcode_shell_path ⇒ Object
23 24 25 |
# File 'lib/core_blur/config.rb', line 23 def xcode_shell_path "#{work_dir}/XcodeShell" end |