Class: Pod::Command::Bin::Repo::Push
- Inherits:
-
Pod::Command::Bin::Repo
- Object
- Pod::Command
- Pod::Command::Bin
- Pod::Command::Bin::Repo
- Pod::Command::Bin::Repo::Push
- Defined in:
- lib/cocoapods-pahealth-bin/command/bin/repo/push.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Push
constructor
A new instance of Push.
- #run ⇒ Object
Methods inherited from Pod::Command::Bin
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
#code_source, #sources_manager, #sources_option, #valid_sources
Constructor Details
#initialize(argv) ⇒ Push
Returns a new instance of Push.
24 25 26 27 28 29 30 31 |
# File 'lib/cocoapods-pahealth-bin/command/bin/repo/push.rb', line 24 def initialize(argv) @podspec = argv.shift_argument @trunk_dependencies = argv.flag?('trunk-dependencies') @sources = argv.option('sources') || [] super @additional_args = argv.remainder! end |
Class Method Details
Instance Method Details
#run ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/cocoapods-pahealth-bin/command/bin/repo/push.rb', line 33 def run Podfile.execute_with_bin_plugin do Podfile.execute_with_allow_prerelease(@allow_prerelease) do Podfile.execute_with_use_binaries(!@code_dependencies) do argvs = [ repo, "--sources=#{sources_option(!@trunk_dependencies, @sources)}", *@additional_args ] argvs << spec_file if spec_file push = Pod::Command::Repo::Push.new(CLAide::ARGV.new(argvs)) push.validate! push.run end end end ensure clear_binary_spec_file_if_needed unless @reserve_created_spec end |