discotheque 0.0.1 → 0.0.2
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/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