dokku-installer-cli 0.1.0 → 0.1.1
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 +3 -2
- data/lib/dokku_installer/postgres.rb +12 -2
- data/lib/dokku_installer/version.rb +1 -1
- 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: f08fede5e7f13bc4e2417684676a6e2cacae5141
|
4
|
+
data.tar.gz: 8cf626d47a978bb9ad6f64ca36143600c1bb20b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
38
|
-
dokku ssl:
|
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
|
-
|
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
|
-
|
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"
|
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.
|
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-
|
11
|
+
date: 2014-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|