Sha256: 2b5ac9a739e4d946975502f9a523e0e2f6cf54e68c468ce332a8e2b0f6ceb92a

Contents?: true

Size: 484 Bytes

Versions: 5

Compression:

Stored size: 484 Bytes

Contents

require 'wombat/common'

module Wombat
  class UpdateRunner
    include Wombat::Common

    attr_reader :cloud, :update_file

    def initialize(opts)
      @cloud = opts.cloud.nil? ? "aws" : opts.cloud
      @update_file = opts.file.nil? ? "all" : opts.file
      @wombat_yml = opts.wombat_yml
    end

    def start
      update_lock(cloud) if /(all|lock)/.match(update_file)
      update_template(cloud) if /(all|template)/.match(update_file)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wombat-cli-0.6.1 lib/wombat/update.rb
wombat-cli-0.6.0 lib/wombat/update.rb
wombat-cli-0.5.0 lib/wombat/update.rb
wombat-cli-0.4.3 lib/wombat/update.rb
wombat-cli-0.4.2 lib/wombat/update.rb