dokku-installer-cli 0.0.9 → 0.0.9.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: 25020f2b95b8dcff21290f451cf31c3bb288a424
4
- data.tar.gz: 4d2f383fb98e9c810792f3c5e06fb890456231e0
3
+ metadata.gz: 6c5179bf5289d296ba2a1e33360b026302996985
4
+ data.tar.gz: c038a76fda5e4e58724758f1d535203bdc1c040e
5
5
  SHA512:
6
- metadata.gz: 24ad507fb472e346ebaa848b6d0fcef0a875e83f3820c72ac46edc82d80c0d4583a29b47c35e9c66c42b5fec1b306447233d82829193f3ce8e2f31294b1bcfec
7
- data.tar.gz: 91f9f6ac6ca6a70390eaadf6e242e3f5eecdb1c82bb9504a5f246084f41f209058094466651ad9ecaaa9e244c41b99dad666486b73a3c3cbce4833ada57bee2f
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
- ```bash
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 run <cmd> # Run a command in the environment of an application
28
- dokku version # Print dokku-installer-cli's version
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
- dokku_command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:certificate #{app_name}"
149
+ command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:certificate #{app_name}"
143
150
 
144
- puts "Running #{dokku_command}..."
145
- exec(dokku_command)
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
- dokku_command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:key #{app_name}"
159
+ command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:key #{app_name}"
153
160
 
154
- puts "Running #{dokku_command}..."
155
- exec(dokku_command)
161
+ puts "Running #{command}..."
162
+ exec(command)
156
163
  end
157
164
 
158
165
  desc "url", "Show the URL for the application"
@@ -1,3 +1,3 @@
1
1
  module DokkuInstaller
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.9.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.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-23 00:00:00.000000000 Z
11
+ date: 2014-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor