dokku-installer-cli 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/dokku +20 -0
- data/lib/dokku_installer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c47223114c4e27d49a5d09f044654629b9b902ab
|
4
|
+
data.tar.gz: 94d3da617019a9a66c769c1a776d63b999218166
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d14cafedf0e754507539d38cc16ff00c9fec81a2cd937d3e02f4af98299cc957850fe7f597bfd2cf70c4ed49c00df455abd928dfe809bb07ca72a38d530f5a0
|
7
|
+
data.tar.gz: 6313e6bacae56e61ce9d48e4d8346456083496f958f0b59028a63da22607f10f2942997af45feb9644209134dc8c1692581029dc344e84d8438ce1d3e763c473
|
data/bin/dokku
CHANGED
@@ -50,6 +50,26 @@ module DokkuInstaller
|
|
50
50
|
run_command "run #{app_name} #{args.join(' ')}"
|
51
51
|
end
|
52
52
|
|
53
|
+
desc "ssl:certificate <file path>", "Add a signed certificate for SSL (server.crt)"
|
54
|
+
def ssl_certificate(*args)
|
55
|
+
file_path = args.first
|
56
|
+
file_contents = File.read(file_path)
|
57
|
+
dokku_command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:certificate #{app_name}"
|
58
|
+
|
59
|
+
puts "Running #{dokku_command}..."
|
60
|
+
exec(dokku_command)
|
61
|
+
end
|
62
|
+
|
63
|
+
desc "ssl:key <file path>", "Add a private key for SSL (server.key)"
|
64
|
+
def ssl_key(*args)
|
65
|
+
file_path = args.first
|
66
|
+
file_contents = File.read(file_path)
|
67
|
+
dokku_command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:key #{app_name}"
|
68
|
+
|
69
|
+
puts "Running #{dokku_command}..."
|
70
|
+
exec(dokku_command)
|
71
|
+
end
|
72
|
+
|
53
73
|
desc "version", "Print dokku-installer-cli's version"
|
54
74
|
def version
|
55
75
|
puts "Dokku Installer CLI #{DokkuInstaller::VERSION}"
|