Class: Pod::Command::Bin::Source
- Inherits:
-
Pod::Command::Bin
- Object
- Pod::Command
- Pod::Command::Bin
- Pod::Command::Bin::Source
- Defined in:
- lib/cocoapods-meitu-bin/command/bin/source.rb,
lib/cocoapods-meitu-bin/command/bin/source/add.rb,
lib/cocoapods-meitu-bin/command/bin/source/list.rb,
lib/cocoapods-meitu-bin/command/bin/source/delete.rb
Defined Under Namespace
Instance Method Summary collapse
-
#source_dir ⇒ Object
存放源码的根目录.
-
#target_path(source_spec) ⇒ Object
目标路径.
Methods inherited from Pod::Command::Bin
Methods included from CBin::SpecFilesHelper
#binary_spec, #binary_spec_files, #binary_template_spec, #binary_template_spec_file, #binary_template_spec_files, #clear_binary_spec_file_if_needed, #code_spec, #code_spec_files, #create_binary_spec_file, #find_spec_file, #spec_files
Methods included from CBin::SourcesHelper
#binary_source, #code_source_list, #sources_manager, #sources_option, #valid_sources
Constructor Details
This class inherits a constructor from Pod::Command::Bin
Instance Method Details
#source_dir ⇒ Object
存放源码的根目录
19 20 21 22 23 24 25 |
# File 'lib/cocoapods-meitu-bin/command/bin/source.rb', line 19 def source_dir @source_dir ||= begin dir = "#{Dir.home}/LLDB_Sources" FileUtils.mkdir_p(dir) unless File.exist?(dir) dir end end |
#target_path(source_spec) ⇒ Object
目标路径
14 15 16 |
# File 'lib/cocoapods-meitu-bin/command/bin/source.rb', line 14 def target_path(source_spec) "#{source_dir}/#{source_spec.name}/#{source_spec.version}" end |