ocean_kit 0.1.4 ā†’ 0.1.5

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
  SHA256:
3
- metadata.gz: f64bff4db9951b545ab33726c4cb0ad20ccaa0d55006737759d023352ccb0f9f
4
- data.tar.gz: e1bf61b1b1ec8d36ed813ec00681f5a8ae8b06de9046eee2e7f4785edabc4a27
3
+ metadata.gz: 84dcf8fe7afd5f888192ce09e6ec3c7153052a812142ae4726d7cbf15b7a43dd
4
+ data.tar.gz: 930fa733a585ea61efe68c924b66596bf05b80f63282e535f4435f5e1e8adb2c
5
5
  SHA512:
6
- metadata.gz: 68d98b0f3681e5cab5ebb2f6e5635cd06993382406a7f3ce0d881820416ecf35ee6b98196e426553752e9a6724fdcfcae3605e87af8a3f0613c3541c5d2f8c37
7
- data.tar.gz: 27d79bfe3f6241dc8a07a26476b2148bdb705c88c25aee38cb5f7361dca878337c5a94570229c53f2399d6d66f99e578526e410fdaa0a6fb131d329527a54b00
6
+ metadata.gz: 1189f7a21bd24d3bddbf4d0b2144a3b67e1f16df14c02b6b38189cbf921ef2c4bbf5bec976640860ce3a4a7dd9acbefbb23a94ed6f9b52fd38d3db48cff844f1
7
+ data.tar.gz: 073dc845350bea427160ec66556ffcb06bde23b95cacac2b28b0065f5f58e2cb9543edf372cdfe640bbef32661c49095e3544644bfab1d2f78f8493b8348c9f6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ocean_kit (0.1.3)
4
+ ocean_kit (0.1.4)
5
5
  droplet_kit (~> 3.16, >= 3.16.1)
6
6
  pastel
7
7
  thor (~> 1.2)
@@ -6,8 +6,6 @@ end
6
6
 
7
7
  def access_token
8
8
  credentials_file["digital_ocean_token"]
9
- rescue => e
10
- puts pastel.red.bold("Error: #{e.message}")
11
9
  end
12
10
 
13
11
  def credentials_file
@@ -15,6 +15,7 @@ module OceanKit
15
15
  YAML
16
16
  end
17
17
  puts pastel.green.bold("Successfully setup OceanKit environment.")
18
+ puts pastel.white.bold("Please add your Digital Ocean personal access token your credentials in ~/.ocean_kit/credentials.yml")
18
19
  end
19
20
  end
20
21
  end
@@ -4,16 +4,17 @@ module OceanKit
4
4
  class Droplets < Thor
5
5
  desc "list", "Lists all droplers."
6
6
  def list
7
- puts underline_text("Droplets:")
8
- puts pastel.blue.bold "šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³\n"
7
+ puts underline_text("Droplets:\n")
9
8
  do_client.droplets.all.each_with_index do |droplet, index|
9
+ puts "------------------------------\n"
10
+
11
+ puts pastel.white.bold "#: ", pastel.clear.white(index + 1)
10
12
  puts pastel.white.bold "Name: ", pastel.clear.white(droplet.name)
11
13
  puts pastel.white.bold "ID: ", pastel.clear.white(droplet.id)
12
14
  puts pastel.white.bold "Public IP: ", pastel.clear.white(droplet.networks.v4.first.ip_address)
13
15
  puts pastel.white.bold "Region: ", pastel.clear.white(droplet.region.slug)
14
16
  puts pastel.white.bold "Status: ", pastel.clear.white(droplet.status)
15
17
  puts pastel.white.bold "Created: ", pastel.clear.white(droplet.created_at)
16
- puts pastel.blue.bold "\nšŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³šŸ³\n"
17
18
  end
18
19
  end
19
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OceanKit
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo Policastro