lib/idlc-sdk-deploy/power.rb in idlc-sdk-deploy-1.0.0.rc4 vs lib/idlc-sdk-deploy/power.rb in idlc-sdk-deploy-1.0.0.rc5
- old
+ new
@@ -110,10 +110,21 @@
msg "recieved response from #{endpoint} !"
true
end
+ def get_name(tags)
+ name = ''
+
+ tags.each do |t|
+ name = t.value if t.key == 'Name'
+ end
+
+ # Return
+ name
+ end
+
private
def keep_alive?(tags)
k = 'false'
@@ -126,19 +137,9 @@
def true?(string)
string.to_s == 'true'
end
- def get_name(tags)
- name = ''
-
- tags.each do |t|
- name = t.value if t.key == 'Name'
- end
-
- # Return
- name
- end
def http_request(endpoint)
uri = URI.parse endpoint
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true