lib/kitchen/driver/ec2.rb in kitchen-ec2-1.0.0 vs lib/kitchen/driver/ec2.rb in kitchen-ec2-1.0.1

- old
+ new

@@ -80,9 +80,16 @@ default_config :http_proxy, ENV["HTTPS_PROXY"] || ENV["HTTP_PROXY"] default_config :retry_limit, 3 required_config :aws_ssh_key_id + def initialize(*args, &block) + super + # Access these so they are eagerly loaded (since we'll reference them later) + ::Aws::EC2::Client # rubocop:disable Lint/Void + ::Aws::EC2::Resource # rubocop:disable Lint/Void + end + def self.validation_warn(driver, old_key, new_key) driver.warn "WARN: The driver[#{driver.class.name}] config key `#{old_key}` " \ "is deprecated, please use `#{new_key}`" end