Class: Bigrig::ShipAction

Inherits:
Object
  • Object
show all
Defined in:
lib/bigrig/actions/ship_action.rb

Instance Method Summary collapse

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

#performObject



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