provisionator 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/provisionator/ec2_launcher.rb +4 -3
- data/lib/provisionator/version.rb +1 -1
- metadata +3 -3
|
@@ -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(:
|
|
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(:
|
|
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(:
|
|
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={}
|
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.
|
|
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:
|
|
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:
|
|
109
|
+
hash: -1501078896266463638
|
|
110
110
|
requirements: []
|
|
111
111
|
rubyforge_project:
|
|
112
112
|
rubygems_version: 1.8.23
|