Sha256: c8ba46aa6cfc3b993da1585ae0f468df89eedc6e3d716e52dad40187e6256594

Contents?: true

Size: 370 Bytes

Versions: 8

Compression:

Stored size: 370 Bytes

Contents

#encoding: UTF-8

module Rivet
  class Ec2Config < BaseConfig

    def initialize(name, load_path='.', &block)
      @required_fields = {
        :image_id => nil,
        :region => 'us-east-1',
        :availability_zone => 'a'
      }
      super(name,load_path, &block)
    end

    def normalize_availability_zone
      region + availability_zone
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rivet-3.2.0 lib/rivet/ec2/ec2_config.rb
rivet-3.1.0 lib/rivet/ec2/ec2_config.rb
rivet-3.0.5 lib/rivet/ec2/ec2_config.rb
rivet-3.0.4 lib/rivet/ec2/ec2_config.rb
rivet-3.0.3 lib/rivet/ec2/ec2_config.rb
rivet-3.0.2 lib/rivet/ec2/ec2_config.rb
rivet-3.0.1 lib/rivet/ec2/ec2_config.rb
rivet-3.0.0 lib/rivet/ec2/ec2_config.rb