Class: PodPrebuild::CachePusher
- Inherits:
-
CommandExecutor
- Object
- CommandExecutor
- PodPrebuild::CachePusher
- Defined in:
- lib/command/executor/pusher.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ CachePusher
constructor
A new instance of CachePusher.
- #run ⇒ Object
Methods inherited from CommandExecutor
Constructor Details
#initialize(options) ⇒ CachePusher
Returns a new instance of CachePusher.
5 6 7 8 |
# File 'lib/command/executor/pusher.rb', line 5 def initialize() super() @cache_branch = [:cache_branch] end |
Instance Method Details
#run ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/command/executor/pusher.rb', line 10 def run Pod::UI.step("Pushing cache") do = "Update prebuilt cache".shellescape git("add .") git("commit -m '#{commit_message}'") git("push origin head") end end |