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
Constructor Details
#initialize(argv) ⇒ Prebuild
Returns a new instance of Prebuild.
15 16 17 18 19 20 21 22 |
# File 'lib/command/prebuild.rb', line 15 def initialize(argv) super @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 |
# File 'lib/command/prebuild.rb', line 9 def self. [ ["--push", "Push cache to repo upon completion"] ] end |
Instance Method Details
#run ⇒ Object
24 25 26 27 |
# File 'lib/command/prebuild.rb', line 24 def run Pod::Podfile::DSL.prebuild_job = true @prebuilder.run end |