civo 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/civo/instance.rb +1 -1
- data/lib/civo/cli/commands/instances.rb +1 -1
- data/lib/civo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e5463b0e08e0ffa00d0a7d17d0153db4791ed02
|
4
|
+
data.tar.gz: e141feef471c2348018b62066e5f7eeef4a831e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7939ece1ad6da2f88e869d9c1f91d4f092f935f3bbf9d8974834f96b09a8f2ee6f129fee11b32cdfc45839abe2e6c314f01ae08364608cebf75d918047f4c1d1
|
7
|
+
data.tar.gz: 0984687cc67607a16c83f3eeaff9f5fbc95ff96e57b91c9a945f566faf5bad7ef6955f0bf88652677cd057f3558e32890282e53603406794fec6aa9c30862b68
|
data/app/models/civo/instance.rb
CHANGED
@@ -10,7 +10,7 @@ module Civo
|
|
10
10
|
post :reboot, "/v1/instances/:id/reboots", requires: [:id]
|
11
11
|
put :upgrade, "/v1/instances/:id", requires: [:size, :id]
|
12
12
|
|
13
|
-
def
|
13
|
+
def nice_ip_addresses
|
14
14
|
@ip_addresses ||= (self._attributes[:ip_addresses].items rescue []).map do |ip|
|
15
15
|
if ip.public_ip
|
16
16
|
"#{ip.private_ip}=>#{ip.public_ip}"
|
@@ -3,7 +3,7 @@ command "instances" do |c|
|
|
3
3
|
c.action do |args, options|
|
4
4
|
begin
|
5
5
|
instances = Civo::Instance.all
|
6
|
-
Civo::Client.tabulate_flexirest instances, {id: "ID", hostname: "Hostname", size: "Size",
|
6
|
+
Civo::Client.tabulate_flexirest instances, {id: "ID", hostname: "Hostname", size: "Size", nice_ip_addresses: "IP Addresses", status: "Status", initial_user: "User", initial_password: "Password"}
|
7
7
|
rescue Flexirest::HTTPServerException => e
|
8
8
|
puts "An error occurred: #{e.result.reason}"
|
9
9
|
exit 3
|
data/lib/civo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: civo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|