Class: Pod::Command::Bin::Lock::SpecRepo

Inherits:
Pod::Command::Bin::Lock show all
Includes:
Pod
Defined in:
lib/cocoapods-mtxx-bin/command/bin/lock/spec_repo.rb

Instance Method Summary collapse

Methods included from Pod

match_version?

Methods inherited from Pod::Command::Bin::Lock

#analyze

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

#initialize(argv) ⇒ SpecRepo

Returns a new instance of SpecRepo.



18
19
20
21
# File 'lib/cocoapods-mtxx-bin/command/bin/lock/spec_repo.rb', line 18

def initialize(argv)
  super
  @pod_name = argv.shift_argument
end

Instance Method Details

#runObject



23
24
25
26
27
28
29
30
# File 'lib/cocoapods-mtxx-bin/command/bin/lock/spec_repo.rb', line 23

def run
  super
  if @pod_name.nil?
    spec_repo_summary
  else
    pod_source
  end
end