gclouder 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/lib/gclouder/resources.rb +2 -4
- data/lib/gclouder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: baaf48f15c04779f8f78a2f4c1d50c6e1ea063f0
|
|
4
|
+
data.tar.gz: 479686e9f5e43fa962a7eac13f09cdc17fe06766
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac0e7cf7f4e91c808625ec6ac98e9eb4e74c09428a9580b7dd3dd3f4e4cb4bc37ec2fb0eec50bc8dc052279b1777ce83f4deb986d09a587de63e67f279f0c596
|
|
7
|
+
data.tar.gz: a53b392ddb591f77f197d34f5c12e64df778eca9cacf488e0e8d84891f293e5606db949be872b3481ca6028095e8a0ccbc6b2cfc2286bace32b99cb896ed97c6
|
data/lib/gclouder/resources.rb
CHANGED
|
@@ -80,11 +80,9 @@ module GClouder
|
|
|
80
80
|
|
|
81
81
|
next if skip
|
|
82
82
|
|
|
83
|
-
YAML.load_file("assets/mappings/file.yml")
|
|
84
|
-
|
|
85
83
|
# FIXME: this is so keys with partial matches work..
|
|
86
84
|
file_mapping_key = path.join("::")
|
|
87
|
-
file_mapping = YAML.load_file("assets/mappings/file.yml").fetch(file_mapping_key, nil)
|
|
85
|
+
file_mapping = YAML.load_file(File.join(File.dirname(__FILE__), "../../assets/mappings/file.yml")).fetch(file_mapping_key, nil)
|
|
88
86
|
|
|
89
87
|
resource_representation_path = file_mapping.nil? ? path : file_mapping
|
|
90
88
|
|
|
@@ -98,7 +96,7 @@ module GClouder
|
|
|
98
96
|
# FIXME: partial key matches here are bad.. i.e: [compute, networks] matches [compute, networks, subnetworks]
|
|
99
97
|
# maps remote property names back to arguments
|
|
100
98
|
property_mappings_key = path.join("::")
|
|
101
|
-
property_mappings = YAML.load_file("assets/mappings/property.yml").fetch(property_mappings_key, [])
|
|
99
|
+
property_mappings = YAML.load_file(File.join(File.dirname(__FILE__), "../../assets/mappings/property.yml")).fetch(property_mappings_key, [])
|
|
102
100
|
|
|
103
101
|
# Assume global, unless we can find or infer a region...
|
|
104
102
|
region = "global"
|
data/lib/gclouder/version.rb
CHANGED