dokkufy 0.0.5 → 0.0.6
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 +4 -4
- data/README.md +9 -0
- data/bin/dokkufy +11 -0
- data/lib/dokkufy/info.rb +1 -1
- data/lib/dokkufy/plugin.rb +5 -0
- data/lib/dokkufy/server.rb +1 -1
- data/scripts/uninstall_plugin.sh +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50b47f06de94cfecf2237ed3dcdb4a36e40af05a
|
4
|
+
data.tar.gz: 4b15258dc926085290f93c3be7f729e6f492f9b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bf673633db7acd72c29ab4d3c1adb60da88a74849ebea71ac424e0112076d95968c289109c7a8bbc75adeeb67d925064cceb946f0457da3fd21023027a5992f
|
7
|
+
data.tar.gz: 89453ba7ebf8650bd13cbb0429816cdd2b7c8cf3697addc222282529058fcbacc5cd8f2c3e497a2ec7256bcc934b617ad5d85fea2751264e8ccd767f55d109c5
|
data/README.md
CHANGED
@@ -49,8 +49,17 @@ dokkufy plugin:install <plugin_name_or_id> [<hostname> <username>]
|
|
49
49
|
|
50
50
|
Installs a Dokku plugin either by name or ID (as received by `dokkufy plugin:list`) on a server. Only supports the standard install procedure. Check the plugins wiki for any additional install notes.
|
51
51
|
|
52
|
+
### dokkufy plugin:uninstall
|
53
|
+
|
54
|
+
```sh
|
55
|
+
dokkufy plugin:uninstall <plugin_name_or_id> [<hostname> <username>]
|
56
|
+
```
|
57
|
+
|
58
|
+
Uninstalls a Dokku plugin either by name or ID (as received by `dokkufy plugin:list`) on a server. Simply performs a delete of the folder. Server instances already deployed with this plugin will need to be redeployed.
|
59
|
+
|
52
60
|
## Release notes
|
53
61
|
|
62
|
+
* **0.0.6** Adds plugin uninstall
|
54
63
|
* **0.0.5** Small bug fix to plugin installs
|
55
64
|
* **0.0.4** Adds plugin listing and installing
|
56
65
|
* **0.0.3** Determines latest version from Dokku github page
|
data/bin/dokkufy
CHANGED
@@ -44,5 +44,16 @@ Commander.configure do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
+
command :'plugin:uninstall' do |c|
|
48
|
+
c.syntax = 'dokkufy plugin:uninstall <plugin_name_or_id> [<hostname> <username>]'
|
49
|
+
c.description = "Uninstalls a known Dokku plugin"
|
50
|
+
c.action do |args, options|
|
51
|
+
id_or_name = args[0] || ask('Plugin ID or Name: ')
|
52
|
+
hostname = args[1] || ask('Server hostname or IP: ')
|
53
|
+
username = args[2] || ask('Username on server: ')
|
54
|
+
Dokkufy::Plugin.new(hostname, username).uninstall(id_or_name)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
47
58
|
default_command :help
|
48
59
|
end
|
data/lib/dokkufy/info.rb
CHANGED
data/lib/dokkufy/plugin.rb
CHANGED
@@ -16,6 +16,11 @@ module Dokkufy
|
|
16
16
|
Dokkufy::Server.new(hostname, username).install_plugin(path, name)
|
17
17
|
end
|
18
18
|
|
19
|
+
def uninstall id_or_name
|
20
|
+
self.path = id_or_name
|
21
|
+
Dokkufy::Server.new(hostname, username).uninstall_plugin(path, name)
|
22
|
+
end
|
23
|
+
|
19
24
|
def self.all with_notes = false
|
20
25
|
return @plugins if @plugins
|
21
26
|
open("https://github.com/progrium/dokku/wiki/Plugins") do |f|
|
data/lib/dokkufy/server.rb
CHANGED
@@ -25,7 +25,7 @@ module Dokkufy
|
|
25
25
|
filename = Dokkufy::Utils.script method_name
|
26
26
|
server = "#{username}@#{hostname}"
|
27
27
|
`scp #{filename} #{server}:`
|
28
|
-
system("ssh -t #{server} 'OPTION1=#{args[0]} OPTION2=#{args[1]} ./#{method_name}.sh'")
|
28
|
+
system("ssh -t -q #{server} 'OPTION1=#{args[0]} OPTION2=#{args[1]} ./#{method_name}.sh'")
|
29
29
|
`ssh -t -q #{server} 'rm ~/#{method_name}.sh'`
|
30
30
|
end
|
31
31
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
sudo rm -rf /var/lib/dokku/plugins/$OPTION2
|
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.0.
|
4
|
+
version: 0.0.6
|
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-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- scripts/ensure_passwordless_sudo.sh
|
78
78
|
- scripts/install_dokku.sh
|
79
79
|
- scripts/install_plugin.sh
|
80
|
+
- scripts/uninstall_plugin.sh
|
80
81
|
homepage: http://github.com/cbetta/dokkufy
|
81
82
|
licenses:
|
82
83
|
- MIT
|