Class: Pod::Command::Util::Repo::Push
- Inherits:
-
Pod::Command::Util::Repo
- Object
- Pod::Command
- Pod::Command::Util
- Pod::Command::Util::Repo
- Pod::Command::Util::Repo::Push
- Defined in:
- lib/cocoapods-util/command/cocoapods-extend/repo/push.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Push
constructor
A new instance of Push.
- #run ⇒ Object
- #validate! ⇒ Object
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
Instance Method Details
#run ⇒ Object
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 |