Class: Bigrig::ShipAction
- Inherits:
-
Object
- Object
- Bigrig::ShipAction
- Defined in:
- lib/bigrig/actions/ship_action.rb
Instance Method Summary collapse
-
#initialize(file, version, clean, credentials) ⇒ ShipAction
constructor
A new instance of ShipAction.
- #perform ⇒ Object
Constructor Details
#initialize(file, version, clean, credentials) ⇒ ShipAction
Returns a new instance of ShipAction.
3 4 5 6 7 8 |
# File 'lib/bigrig/actions/ship_action.rb', line 3 def initialize(file, version, clean, credentials) @file = file @version = version @clean = clean @credentials = credentials end |
Instance Method Details
#perform ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/bigrig/actions/ship_action.rb', line 10 def perform containers.each do |_name, container| container['path'] && build_and_push!(container) end File.write outfile, JSON.dump(json) end |