discotheque 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/discotheque.rb +2 -0
- data/lib/discotheque/metadata.rb +1 -1
- data/lib/discotheque/version.rb +1 -1
- metadata +1 -1
data/lib/discotheque.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
module Discotheque
|
2
|
+
# something something darkside
|
2
3
|
end
|
3
4
|
|
4
5
|
require File.join(File.dirname(__FILE__), 'discotheque', 'version')
|
5
6
|
require File.join(File.dirname(__FILE__), 'discotheque', 'metadata')
|
7
|
+
require File.join(File.dirname(__FILE__), 'discotheque', 'discover')
|
data/lib/discotheque/metadata.rb
CHANGED
@@ -14,7 +14,7 @@ module Discotheque
|
|
14
14
|
begin
|
15
15
|
%w[instance-id ami-id security-groups availability-zone].each do |datum|
|
16
16
|
datum == "availability-zone" ? url="#{base_url}/placement/#{datum}" : url="#{base_url}#{datum}"
|
17
|
-
d = HTTParty.get("#{url}").parsed_response
|
17
|
+
d = ::HTTParty.get("#{url}").parsed_response
|
18
18
|
if datum == "security-groups"
|
19
19
|
instance_variable_set "@group_name", d
|
20
20
|
elsif datum == "ami-id"
|
data/lib/discotheque/version.rb
CHANGED