class Pod::Command::HMapGen

hmap file gen cmd

Public Class Methods

new(argv) click to toggle source
Calls superclass method
# File lib/cocoapods-hmap/command/hmap_gen.rb, line 17
def initialize(argv)
  super
  project_directory = argv.option('project-directory')
  @save_origin_header_search_paths = !argv.flag?('nosave-origin-header-search-paths', false)
  @clean_hmap = argv.flag?('clean-hmap', false)

  return if project_directory.nil?

  @project_directory = Pathname.new(project_directory).expand_path
  config.installation_root = @project_directory
end
options() click to toggle source

help

Calls superclass method
# File lib/cocoapods-hmap/command/hmap_gen.rb, line 35
def self.options
  [
    ['--project-directory=/project/dir/', 'The path to the root of the project
      directory'],
    ['--nosave-origin-header-search-paths', 'This option will not save xcconfig origin [HEADER_SEARCH_PATHS] and put hmap file first'],
    ['--clean-hmap', 'This option will clean up all hmap-gen setup for hmap.']
  ].concat(super)
end

Public Instance Methods

run() click to toggle source
# File lib/cocoapods-hmap/command/hmap_gen.rb, line 44
def run
  UI.section "\n[hmap-gen] start.............." do
    HMap::MapFileWriter.new(@save_origin_header_search_paths, @clean_hmap)
  end
  UI.puts('[hmap-gen] finish..............')
end
validate!() click to toggle source
Calls superclass method
# File lib/cocoapods-hmap/command/hmap_gen.rb, line 29
def validate!
  super
  verify_podfile_exists!
end