lib/connection.rb in forj-0.0.19 vs lib/connection.rb in forj-0.0.20

- old
+ new

@@ -1,6 +1,7 @@ #!/usr/bin/env ruby +# encoding: UTF-8 # (c) Copyright 2014 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -18,10 +19,13 @@ require 'require_relative' require_relative 'yaml_parse.rb' include YamlParse +# +# Connection module +# module Connection def compute credentials = get_credentials Fog::Compute.new({ @@ -40,10 +44,10 @@ Fog::HP::Network.new({ :hp_access_key => credentials['access_key'], :hp_secret_key => credentials['secret_key'], :hp_auth_uri => credentials['auth_uri'], :hp_tenant_id => credentials['tenant_id'], - :hp_avl_zone => credentials['availability_zone'], + :hp_avl_zone => credentials['availability_zone'] }) end end