dokkufy 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: deeaa8ef59c14b0a4c4aadcda3199642f769713e
4
- data.tar.gz: e5ad29c3a2e29cc78c8f64fe6993ba96ab0eb9db
3
+ metadata.gz: ffa091fef4ffd1de6b3899b60e1603756555768d
4
+ data.tar.gz: 1940c9f1595903306ff99b46acda72d53183b61d
5
5
  SHA512:
6
- metadata.gz: 3c9fb43cddf2b1570b96b7671806714535b32d862e044d6cac639500118e7192d698d4e978e335372576d342f75ca950a760481a4ad562867140347045fe9397
7
- data.tar.gz: 6cf7daa5e7c7dcb91b585bb83e994ec70b535822aa679261f54e47ad2319ef9cdb3666c4d077f4c92bb0463cef037559bf03502886dae8cd2093d9c95583609e
6
+ metadata.gz: 9592e56d94b21f2696f66e1c5da5e118de28eae3cca87b6f7352890c87b89605ed21521412528d1ba3b0fc93b5e9dd1ad9ed34b64c4cfe2e692f87afe61ad090
7
+ data.tar.gz: bd068363826cb8f346520064fb708eb73295fd971129ba9a99352640f5377252ba6cb7950d6b2ceacf435e15b7fced964acfb1b40a1e083961f9cb6c72cbc71b
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Dokkufy
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/dokkufy.svg)](http://badge.fury.io/rb/dokkufy) [![Code Climate](https://codeclimate.com/github/cbetta/dokkufy/badges/gpa.svg)](https://codeclimate.com/github/cbetta/dokkufy) ![](http://ruby-gem-downloads-badge.herokuapp.com/dokkufy?type=total)
4
+
5
+
3
6
  A [Dokku](https://github.com/progrium/dokku) toolbelt inspired by the [Heroku toolbelt](https://toolbelt.heroku.com/)
4
7
 
5
8
  ## Installation
@@ -119,7 +122,6 @@ $ ssh -t dokku@example.com run test_app ls
119
122
 
120
123
  ## Release notes
121
124
 
122
- <<<<<<< HEAD
123
125
  * **0.1.3** Applies double install fix on 14.04
124
126
  * **0.1.0** Adds the `dokku` command
125
127
  * **0.0.7** Adds the (un)dokkufication of apps
data/lib/dokkufy/info.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Dokkufy
2
- VERSION = "0.1.3" unless defined? Dokkufy::VERSION
2
+ VERSION = "0.1.4" unless defined? Dokkufy::VERSION
3
3
  NAME = "dokkufy" unless defined? Dokkufy::NAME
4
4
  DESCRIPTION = "A Dokku toolchain" unless defined? Dokkufy::DESCRIPTION
5
5
  end
@@ -16,7 +16,11 @@ module Dokkufy
16
16
 
17
17
  def setup_key
18
18
  user = `echo $USER`
19
- command = "cat ~/.ssh/id_rsa.pub | ssh #{username}@#{hostname} 'sudo sshcommand acl-add dokku #{user}'"
19
+ public_key = "id_rsa.pub"
20
+ until File.exists?(File.expand_path("~/.ssh/#{public_key}")) do
21
+ public_key = ask "Enter public key file name(e.g. id_rsa.pub):"
22
+ end
23
+ command = "cat ~/.ssh/#{public_key} | ssh #{username}@#{hostname} 'sudo sshcommand acl-add dokku #{user}'"
20
24
  system command
21
25
  end
22
26
 
@@ -29,4 +33,4 @@ module Dokkufy
29
33
  `ssh -t -q #{server} 'rm ~/#{method_name}.sh'`
30
34
  end
31
35
  end
32
- end
36
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dokkufy
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
  - Cristiano Betta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-05 00:00:00.000000000 Z
11
+ date: 2014-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander