civo 0.1.3 → 0.1.4

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: 07cc2f6f56ccddb31766130b6d300b216883ab5b
4
- data.tar.gz: 2a55bb5e7dbb91346c130f09ff60ff3efbeb1b08
3
+ metadata.gz: cd28b48315c77a52498f8ed3de0d1bed914f3625
4
+ data.tar.gz: 5cd994ec88427368fb94457bf2a02516c78cd8e1
5
5
  SHA512:
6
- metadata.gz: 46b110958c0e7705f69f7df67351ab118cac94a03a6794da09641eac6854d8b875ad5f926fc4bf8a5af3adf2fbe21482ef591a4d42446175acc163ac7853cbd9
7
- data.tar.gz: 92c20421b13997126dace405d35fbf0d3e7aebe89bf275f79c67db685464dc431d71d0ceb7c369b7912d3793398030d981f262ddb6ed99985e9cdb16523d89f5
6
+ metadata.gz: c3545c194631711a502ee09e67fc30af168b15a23a7cd005ef5be448702417308d9cd101f0793fff8b1f138e49bddddc31facae549d5779d0fc9f67e36cb9bb8
7
+ data.tar.gz: fddd65f2ad427207a9d9c86ffbfdcbceef17e6066b4371af7594cedf5e2d9a4da361e44313eb3ba5ed43f6c45b04632105907b2e42ae866bf9ef72ad3c75d23d
data/bin/civo CHANGED
@@ -22,3 +22,4 @@ require_relative "#{ENGINE_ROOT}/lib/civo/cli/commands/sizes.rb"
22
22
  require_relative "#{ENGINE_ROOT}/lib/civo/cli/commands/regions.rb"
23
23
  require_relative "#{ENGINE_ROOT}/lib/civo/cli/commands/templates.rb"
24
24
  require_relative "#{ENGINE_ROOT}/lib/civo/cli/commands/instances.rb"
25
+ require_relative "#{ENGINE_ROOT}/lib/civo/cli/commands/version.rb"
@@ -34,12 +34,8 @@ module Civo
34
34
  end
35
35
  end
36
36
 
37
- puts (columns.keys.map do |k|
38
- "%-#{columns[k][:max_width]}s" % columns[k][:label]
39
- end.to_a.join(" | "))
40
- puts (columns.keys.map do |k|
41
- "-" * columns[k][:max_width]
42
- end.to_a.join("-+-"))
37
+ puts columns.keys.map {|k| "%-#{columns[k][:max_width]}s" % columns[k][:label] }.to_a.join(" | ")
38
+ puts columns.keys.map {|k| "-" * columns[k][:max_width] }.to_a.join("-+-")
43
39
 
44
40
  data.each do |record|
45
41
  row = []
@@ -0,0 +1,6 @@
1
+ command "version" do |c|
2
+ c.description = "Display the version of the CLI client"
3
+ c.action do |args, options|
4
+ puts "Civo CLI and Ruby API library v#{Civo::VERSION}"
5
+ end
6
+ end
data/lib/civo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
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.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-23 00:00:00.000000000 Z
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest
@@ -82,6 +82,7 @@ files:
82
82
  - lib/civo/cli/commands/sshkeys.rb
83
83
  - lib/civo/cli/commands/templates.rb
84
84
  - lib/civo/cli/commands/tokens.rb
85
+ - lib/civo/cli/commands/version.rb
85
86
  - lib/civo/cli/config.rb
86
87
  - lib/civo/cli/token.rb
87
88
  - lib/civo/engine.rb