class Pod::Command::Binary::Prebuild
Attributes
prebuilder[R]
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
Pod::Command::Binary::new
# File lib/command/prebuild.rb, line 22 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", repo_update: argv.flag?("repo-update"), no_fetch: argv.flag?("fetch") == false, push_cache: argv.flag?("push") ) end
options()
click to toggle source
Calls superclass method
Pod::Command::Binary::options
# File lib/command/prebuild.rb, line 11 def self.options [ ["--config", "Config (Debug, Test...) to prebuild"], ["--repo-update", "Update pod repo before installing"], ["--no-fetch", "Do not perform a cache fetch beforehand"], ["--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
Public Instance Methods
run()
click to toggle source
# File lib/command/prebuild.rb, line 41 def run @prebuilder.run end