dokku-installer-cli 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb69b1d5b49e5ec10f762a35e86f9c96dd0d3265
4
- data.tar.gz: 1a00ea3628b1602afee769f3ad7732dcf37ff8f7
3
+ metadata.gz: f08fede5e7f13bc4e2417684676a6e2cacae5141
4
+ data.tar.gz: 8cf626d47a978bb9ad6f64ca36143600c1bb20b4
5
5
  SHA512:
6
- metadata.gz: b0278f0567b864c9df21593471c987f459c9d243b9b3e26a43eed04a8fa5570764670eaa9506a49e7edfa901c7b33790a73c70c684d8c24bf62ca47bbc5c3c27
7
- data.tar.gz: fefdcc7ca36f849629a4cf176b8f67e035d7e9829efbd5e10cb0aa928891a2b352b18a1e2eb593ff000b10c48054a9cd032ef3a1db8ff77a0504550700c946fc
6
+ metadata.gz: 8a5e82b061e82048f49f63f7ce5cf198dce35921a0ef277a8f5d53fffb64e5ac629b6469eb872ef2f091c9cf33a1a22e5f1db3dc9091605eacff1ad49b07b37c
7
+ data.tar.gz: b5ace042975f8b4a6e8a7979384e0e66ae0cac7b5a4a8a13745cc9bff51bac2d19c69a64a1052853854e5f046ece685e6e0a81d42558278dd32478f953cc37b1
data/README.md CHANGED
@@ -34,8 +34,9 @@ Commands:
34
34
  dokku restart # Restart the application
35
35
  dokku run <cmd> # Run a command in the environment of the application
36
36
  dokku ssh # Start an SSH session as root user
37
- dokku ssl:certificate <file path> # Add a signed certificate for SSL (server.crt)
38
- dokku ssl:key <file path> # Add a private key for SSL (server.key)
37
+ dokku ssl:add CRT KEY # Add an SSL endpoint.
38
+ dokku ssl:force DOMAIN # Force SSL on the given domain.
39
+ dokku ssl:remove # Remove an SSL endpoint.
39
40
  dokku url # Show the URL for the application
40
41
  dokku version # Show dokku-installer-cli's version
41
42
  ```
@@ -17,7 +17,15 @@ module DokkuInstaller
17
17
 
18
18
  desc "postgres:backups:create", "Create a new PostgreSQL backup"
19
19
  def postgres_backups_create
20
- run_command "postgres:backups:create #{app_name}"
20
+ command = "ssh -t dokku@#{domain} postgres:backups:create #{app_name}"
21
+ puts "Running #{command}..."
22
+ result = `#{command}`
23
+
24
+ if result.include?("database dumped")
25
+ puts "Database backup created successfully."
26
+ else
27
+ puts "Database backup could not be created."
28
+ end
21
29
  end
22
30
 
23
31
  desc "postgres:backups:disable", "Disable daily PostgreSQL backups"
@@ -40,7 +48,9 @@ module DokkuInstaller
40
48
 
41
49
  desc "postgres:backups:enable", "Enable daily PostgreSQL backups"
42
50
  def postgres_backups_enable
43
- run_command "postgres:backups:enable #{app_name}"
51
+ command = "ssh -t root@#{domain} \"dokku postgres:backups:enable #{app_name} && service cron restart\""
52
+ puts "Running #{command}..."
53
+ exec(command)
44
54
  end
45
55
 
46
56
  desc "postgres:backups:restore:local <number>", "Restore the numbered PostgreSQL backup locally"
@@ -1,3 +1,3 @@
1
1
  module DokkuInstaller
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dokku-installer-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pattison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-28 00:00:00.000000000 Z
11
+ date: 2014-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor