provisionator 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  require 'aws-sdk'
2
2
  require 'provisionator/ec2_userdata'
3
+ require 'logger'
3
4
 
4
5
  module Provisionator
5
6
  class Ec2Launcher
@@ -86,15 +87,15 @@ module Provisionator
86
87
  end
87
88
 
88
89
  def ec2_client
89
- @ec2_client ||= AWS::EC2::Client.new(:ec2_endpoint => @options[:ec2_endpoint])
90
+ @ec2_client ||= AWS::EC2::Client.new(ec2_endpoint: "ec2.#{@options[:ec2_region]}.amazonaws.com")
90
91
  end
91
92
 
92
93
  def ec2
93
- @ec2 ||= AWS::EC2.new(:ec2_endpoint => @options[:ec2_endpoint])
94
+ @ec2 ||= AWS::EC2.new(ec2_endpoint: "ec2.#{@options[:ec2_region]}.amazonaws.com")
94
95
  end
95
96
 
96
97
  def elb
97
- @elb ||= AWS::ELB::Client.new(:ec2_endpoint => @options[:ec2_endpoint])
98
+ @elb ||= AWS::ELB::Client.new(ec2_endpoint: "elasticloadbalancing.#{@options[:ec2_region]}.amazonaws.com")
98
99
  end
99
100
 
100
101
  def user_data attributes={}
@@ -1,3 +1,3 @@
1
1
  module Provisionator
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: provisionator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  segments:
99
99
  - 0
100
- hash: 2427934937659375229
100
+ hash: -1501078896266463638
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  none: false
103
103
  requirements:
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: 2427934937659375229
109
+ hash: -1501078896266463638
110
110
  requirements: []
111
111
  rubyforge_project:
112
112
  rubygems_version: 1.8.23