Class: Pod::Command::Util::Repo::Push

Inherits:
Pod::Command::Util::Repo show all
Defined in:
lib/cocoapods-util/command/cocoapods-extend/repo/push.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Push

Returns a new instance of Push.



16
17
18
19
20
21
22
23
# File 'lib/cocoapods-util/command/cocoapods-extend/repo/push.rb', line 16

def initialize(argv)
  @skip_validate = argv.flag?('skip-validate', false)
  @skip_build = argv.flag?('skip-build', false)
  super
  @argvs = argv.remainder!

  @repo = @argvs.first
end

Class Method Details

.optionsObject



11
12
13
14
# File 'lib/cocoapods-util/command/cocoapods-extend/repo/push.rb', line 11

def self.options
  require_relative 'push_helper'
  Pod::Command::Repo::Push.options
end

Instance Method Details

#runObject



29
30
31
32
33
34
35
36
37
# File 'lib/cocoapods-util/command/cocoapods-extend/repo/push.rb', line 29

def run
  require_relative 'push_helper'
  
  @target = Pod::Command::Repo::Push.new(CLAide::ARGV.new(@argvs))
  @target.validate!
  @target.skip_validate = @skip_validate
  @target.skip_build = @skip_build
  @target.run
end

#validate!Object



25
26
27
# File 'lib/cocoapods-util/command/cocoapods-extend/repo/push.rb', line 25

def validate!
  help! 'A spec-repo name or url is required.' unless @repo
end