Class: Pod::Command::Bin::Repo::Push

Inherits:
Pod::Command::Bin::Repo show all
Defined in:
lib/cocoapods-mtxx-bin/command/bin/repo/push.rb

Class Method Summary collapse

Instance Method Summary collapse

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) ⇒ Push

Returns a new instance of Push.



25
26
27
28
29
30
31
# File 'lib/cocoapods-mtxx-bin/command/bin/repo/push.rb', line 25

def initialize(argv)
  @repo = argv.shift_argument
  @podspec = argv.shift_argument
  super

  @additional_args = argv.remainder!
end

Class Method Details

.optionsObject



21
22
23
# File 'lib/cocoapods-mtxx-bin/command/bin/repo/push.rb', line 21

def self.options
  [].concat(Pod::Command::Repo::Push.options).concat(super).uniq
end

Instance Method Details

#runObject



33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/cocoapods-mtxx-bin/command/bin/repo/push.rb', line 33

def run
  argvs = [
    @repo,
    *@additional_args
  ]

  push = Pod::Command::Repo::Push.new(CLAide::ARGV.new(argvs))
  push.validate!
  push.run
ensure
  clear_binary_spec_file_if_needed unless @reserve_created_spec
end