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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9ab52464a36f69ca2959fe362c332beca4715e0
4
- data.tar.gz: 522d3b1ccdbcf34b05eadd4c2beb9b5e4ff855d0
3
+ metadata.gz: 4e5463b0e08e0ffa00d0a7d17d0153db4791ed02
4
+ data.tar.gz: e141feef471c2348018b62066e5f7eeef4a831e9
5
5
  SHA512:
6
- metadata.gz: 5514b1374a21f0af2c2d6496ddff2b164371e5b34fda6a9510f7e412d586a5a10a010bddbfafd00330fb25b64eefb09647488f01d82934d0ea10891d42bf648d
7
- data.tar.gz: db1e77f338dddef5dfefe9b8b34e993be6964e7894180231048d54c458d7574da1335c62156eef242a0122cf0c2d1b6a3310b0e56154dc64bd6b114b6c047c18
6
+ metadata.gz: 7939ece1ad6da2f88e869d9c1f91d4f092f935f3bbf9d8974834f96b09a8f2ee6f129fee11b32cdfc45839abe2e6c314f01ae08364608cebf75d918047f4c1d1
7
+ data.tar.gz: 0984687cc67607a16c83f3eeaff9f5fbc95ff96e57b91c9a945f566faf5bad7ef6955f0bf88652677cd057f3558e32890282e53603406794fec6aa9c30862b68
@@ -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 ip_addresses
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", ip_addresses: "IP Addresses", status: "Status", initial_user: "User", initial_password: "Password"}
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
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
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.8
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-13 00:00:00.000000000 Z
11
+ date: 2016-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest