dokkufy 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 +4 -4
- data/README.md +3 -1
- data/lib/dokkufy/info.rb +1 -1
- data/lib/dokkufy/server.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffa091fef4ffd1de6b3899b60e1603756555768d
|
4
|
+
data.tar.gz: 1940c9f1595903306ff99b46acda72d53183b61d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/dokkufy/server.rb
CHANGED
@@ -16,7 +16,11 @@ module Dokkufy
|
|
16
16
|
|
17
17
|
def setup_key
|
18
18
|
user = `echo $USER`
|
19
|
-
|
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.
|
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-
|
11
|
+
date: 2014-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|