dokku-installer-cli 0.0.9 → 0.0.9.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 +15 -3
- data/bin/dokku +13 -6
- 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: 6c5179bf5289d296ba2a1e33360b026302996985
|
4
|
+
data.tar.gz: c038a76fda5e4e58724758f1d535203bdc1c040e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6faf86460a56e7fdf7d19a1f47ce9ce9c85d6a0430dceda21d875420c3ed9922e6aec0ce24e0f54159b71ca1e4e65f97932b9d2fa915461b823bd4d0002542e8
|
7
|
+
data.tar.gz: 81d3b6820e604e364c14a23da4e4a69e9b3c0f7ef52702ae662f6f3840786de2f25026948f47e4f49e0540f84e2629c3e1f302ae67f1cee659c2943dd936f337
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ $ gem install dokku-installer-cli
|
|
12
12
|
|
13
13
|
## Usage
|
14
14
|
|
15
|
-
```
|
15
|
+
```
|
16
16
|
$ dokku help
|
17
17
|
|
18
18
|
Commands:
|
@@ -24,8 +24,20 @@ Commands:
|
|
24
24
|
dokku domains:set DOMAIN1 [DOMAIN2 ...] # Set one or more domains
|
25
25
|
dokku help [COMMAND] # Describe available commands or one specific command
|
26
26
|
dokku logs [-t] # Show the last logs for the application (-t follows)
|
27
|
-
dokku
|
28
|
-
dokku
|
27
|
+
dokku open # Open the application in your default browser
|
28
|
+
dokku postgres:backups # List available PostgreSQL backups
|
29
|
+
dokku postgres:backups:create # Create a new PostgreSQL backup
|
30
|
+
dokku postgres:backups:disable # Disable daily PostgreSQL backups
|
31
|
+
dokku postgres:backups:download <number> # Download the numbered PostgreSQL backup
|
32
|
+
dokku postgres:backups:enable # Enable daily PostgreSQL backups
|
33
|
+
dokku postgres:backups:restore:local <number> # Restore the numbered PostgreSQL backup locally
|
34
|
+
dokku restart # Restart the application
|
35
|
+
dokku run <cmd> # Run a command in the environment of the application
|
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)
|
39
|
+
dokku url # Show the URL for the application
|
40
|
+
dokku version # Show dokku-installer-cli's version
|
29
41
|
```
|
30
42
|
|
31
43
|
## Contributing
|
data/bin/dokku
CHANGED
@@ -135,24 +135,31 @@ module DokkuInstaller
|
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|
138
|
+
desc "ssh", "Start an SSH session as root user"
|
139
|
+
def ssh
|
140
|
+
command = "ssh root@#{domain}"
|
141
|
+
puts "Running #{command}..."
|
142
|
+
exec(command)
|
143
|
+
end
|
144
|
+
|
138
145
|
desc "ssl:certificate <file path>", "Add a signed certificate for SSL (server.crt)"
|
139
146
|
def ssl_certificate(*args)
|
140
147
|
file_path = args.first
|
141
148
|
file_contents = File.read(file_path)
|
142
|
-
|
149
|
+
command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:certificate #{app_name}"
|
143
150
|
|
144
|
-
puts "Running #{
|
145
|
-
exec(
|
151
|
+
puts "Running #{command}..."
|
152
|
+
exec(command)
|
146
153
|
end
|
147
154
|
|
148
155
|
desc "ssl:key <file path>", "Add a private key for SSL (server.key)"
|
149
156
|
def ssl_key(*args)
|
150
157
|
file_path = args.first
|
151
158
|
file_contents = File.read(file_path)
|
152
|
-
|
159
|
+
command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:key #{app_name}"
|
153
160
|
|
154
|
-
puts "Running #{
|
155
|
-
exec(
|
161
|
+
puts "Running #{command}..."
|
162
|
+
exec(command)
|
156
163
|
end
|
157
164
|
|
158
165
|
desc "url", "Show the URL for the application"
|
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.0.9
|
4
|
+
version: 0.0.9.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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|