kontena-plugin-digitalocean 0.3.1 → 0.3.2

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: 0b360ca30054c74ad16332d725ce999af892cf52
4
- data.tar.gz: 275a49354f7c585ba5f5e13f8292a1308b4ad907
3
+ metadata.gz: 99e75597e0fcd09ef861574f3eaea5ea4219411f
4
+ data.tar.gz: e07625bffcdae0d3858c2f4d51a2ec3264d0aff0
5
5
  SHA512:
6
- metadata.gz: 93ae933981067d120c5823fa9b8f18ba942ae6c294c2aaed9dae89b1540b39116c1e8e2f66995ff23c3d62bf76f920cb3064cb6eea7039428bde97a7bf784d44
7
- data.tar.gz: 5937a77e6584f1f4259e96aa55cc98c4224872f6877bc08a8f398dafda6f997fc7f537e56a617cf7cb99f508727b602d8caefd282755fb948c5b4c5d513ca21c
6
+ metadata.gz: 0ad457cd36d267488c155e070e48eb59002c78f8353467544643b54a6a4afcaf28e6527bbc6da7bc04a72328c26a8eaa9f235741dd7385cea521e1422a98a4f1
7
+ data.tar.gz: d6501e6f3ced8be3f960211c4ca384a0995089f59e201ad2b70dde9cf532f6bf30d8007d6b2e98fc21ec5ad90b9acec494f399e29c5228de8ecc243340fe9d45
@@ -1,7 +1,7 @@
1
1
  module Kontena
2
2
  module Plugin
3
3
  module DigitalOcean
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
6
6
  end
7
7
  end
@@ -14,7 +14,6 @@ module Kontena::Plugin::DigitalOcean::Prompts
14
14
  manager = Kontena::Machine::DigitalOcean::SshKeyManager.new(do_token)
15
15
 
16
16
  if self.ssh_key
17
- puts self.ssh_key.inspect
18
17
  public_key = File.read(self.ssh_key).strip
19
18
  else
20
19
  keys = manager.list
@@ -41,11 +40,10 @@ module Kontena::Plugin::DigitalOcean::Prompts
41
40
  q.validate /^ssh-rsa \S+ \S+$/
42
41
  end
43
42
  else
44
- public_key = key.public_key
43
+ return key.id
45
44
  end
46
-
47
- manager.find_or_create_by_public_key(public_key).id
48
45
  end
46
+ manager.find_or_create_by_public_key(public_key).id
49
47
  end
50
48
 
51
49
  def ask_do_token
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kontena-plugin-digitalocean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kontena, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-09 00:00:00.000000000 Z
11
+ date: 2017-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kontena-cli