hpcloud 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +18 -1
- data/README.rdoc +1 -11
- data/lib/hpcloud/commands/dns/records/add.rb +6 -1
- data/lib/hpcloud/version.rb +2 -2
- metadata +1 -1
data/LICENSE
CHANGED
@@ -1 +1,18 @@
|
|
1
|
-
Copyright
|
1
|
+
© Copyright 2013 Hewlett-Packard Development Company, L.P.
|
2
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
3
|
+
of this software and associated documentation files (the "Software"), to deal
|
4
|
+
in the Software without restriction, including without limitation the rights
|
5
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
6
|
+
copies of the Software, and to permit persons to whom the Software is
|
7
|
+
furnished to do so, subject to the following conditions:
|
8
|
+
|
9
|
+
The above copyright notice and this permission notice shall be included in all
|
10
|
+
copies or substantial portions of the Software.
|
11
|
+
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
SOFTWARE.
|
data/README.rdoc
CHANGED
@@ -8,17 +8,7 @@ The current version of the CLI requires Ruby 1.9.2 or 1.8.7 and a recent version
|
|
8
8
|
|
9
9
|
== Installation
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
- HP Cloud Ruby Fog Binding[http://docs.hpcloud.com/bindings/fog]
|
14
|
-
|
15
|
-
2) Download the HP Cloud Services Unix CLI gem[http://docs.hpcloud.com/cli/unix] and unpack it into a local directory.
|
16
|
-
|
17
|
-
3) 'cd' into the directory, you downloaded the gem into during Step 2) and type:
|
18
|
-
|
19
|
-
gem install hpcloud-<version>.gem
|
20
|
-
|
21
|
-
where <version> is the version number of the downloaded and unpacked gem file, for example 0.0.8
|
11
|
+
gem install hpcloud
|
22
12
|
|
23
13
|
You should see the gem and its dependencies being installed on your system. To verify installation, simply type:
|
24
14
|
|
@@ -38,7 +38,12 @@ Examples:
|
|
38
38
|
@log.fatal dns.cstatus
|
39
39
|
end
|
40
40
|
priority = priority[0]
|
41
|
-
|
41
|
+
if priority.nil?
|
42
|
+
priority = {}
|
43
|
+
else
|
44
|
+
priority = { :priority => priority.to_i }
|
45
|
+
end
|
46
|
+
record = dns.create_record(name, type, data, priority)
|
42
47
|
if record.nil?
|
43
48
|
@log.fatal dns.cstatus
|
44
49
|
end
|
data/lib/hpcloud/version.rb
CHANGED