Class: Pod::Command::Binary::Prebuild
- Inherits:
-
Pod::Command::Binary
- Object
- Pod::Command
- Pod::Command::Binary
- Pod::Command::Binary::Prebuild
- Defined in:
- lib/command/prebuild.rb
Instance Attribute Summary collapse
-
#prebuilder ⇒ Object
readonly
Returns the value of attribute prebuilder.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Prebuild
constructor
A new instance of Prebuild.
- #run ⇒ Object
Methods inherited from Pod::Command::Binary
#load_podfile, #prebuild_config, #update_cli_config
Constructor Details
#initialize(argv) ⇒ Prebuild
Returns a new instance of Prebuild.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/command/prebuild.rb', line 20 def initialize(argv) super unless ENV['ARTIFACTORY_LOGIN'].nil? && ENV['ARTIFACTORY_PASSWORD'].nil? update_cli_config( :artifactory_login => ENV['ARTIFACTORY_LOGIN'], :artifactory_password => ENV['ARTIFACTORY_PASSWORD'] ) else Pod::UI.puts "Please configure ARTIFACTORY_LOGIN and ARTIFACTORY_PASSWORD envirement to use prebuild".red exit end prebuild_all_pods = argv.flag?("all") prebuild_targets = argv.option("targets", "").split(",") update_cli_config( :prebuild_job => true, :prebuild_all_pods => prebuild_all_pods, :prebuild_config => argv.option("config") ) update_cli_config(:prebuild_targets => prebuild_targets) unless prebuild_all_pods @prebuilder = PodPrebuild::CachePrebuilder.new( config: prebuild_config, repo_update: argv.flag?("repo-update") ) end |
Instance Attribute Details
#prebuilder ⇒ Object (readonly)
Returns the value of attribute prebuilder.
8 9 10 |
# File 'lib/command/prebuild.rb', line 8 def prebuilder @prebuilder end |
Class Method Details
.options ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/command/prebuild.rb', line 11 def self. [ ["--config", "Config (Debug, Test...) to prebuild"], ["--repo-update", "Update pod repo before installing"], ["--all", "Prebuild all binary pods regardless of cache validation"], ["--targets", "Targets to prebuild. Use comma (,) to specify a list of targets"] ].concat(super) end |
Instance Method Details
#run ⇒ Object
45 46 47 |
# File 'lib/command/prebuild.rb', line 45 def run @prebuilder.run end |