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
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.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/command/prebuild.rb', line 18 def initialize(argv) super 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, cache_branch: argv.shift_argument || "master", push_cache: argv.flag?("push") ) end |
Class Method Details
.options ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/command/prebuild.rb', line 9 def self. [ ["--config", "Config (Debug, Test...) to prebuild"], ["--push", "Push cache to repo upon completion"], ["--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
35 36 37 |
# File 'lib/command/prebuild.rb', line 35 def run @prebuilder.run end |