dokku-installer-cli 0.0.4 → 0.0.5

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: abd3f3465235f54255664ec81091b89b9105f99f
4
- data.tar.gz: d08a4526c768389d15c1d6994dd6b67aa02aeb82
3
+ metadata.gz: c47223114c4e27d49a5d09f044654629b9b902ab
4
+ data.tar.gz: 94d3da617019a9a66c769c1a776d63b999218166
5
5
  SHA512:
6
- metadata.gz: 6b2390f70c8141852cd4100ef56ae593ad87f37cdb48739bdf8248b676b1edacf01276d3d03bb1a4384efe6e7792ae1b2ce9c138701abac87a4c682eb75c6ee7
7
- data.tar.gz: 4bdf4fe565a273c0eb0b7fdf1721bba774223665dd0a89c2fbac8b6b1573e04a944eca4ea551f3111bc17a74a771161d5d19c8c12fe79877b3fd3d01a5906396
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}"
@@ -1,3 +1,3 @@
1
1
  module DokkuInstaller
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dokku-installer-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pattison