dokku-cli 0.3.4 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dokku_cli/ps.rb +11 -1
- data/lib/dokku_cli/version.rb +1 -1
- metadata +3 -9
- data/.gitignore +0 -16
- data/Gemfile +0 -4
- data/LICENSE.txt +0 -22
- data/README.md +0 -106
- data/Rakefile +0 -2
- data/dokku-cli.gemspec +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffb6e28b7227195f99a9f31a825b87cc19825fbb
|
4
|
+
data.tar.gz: 879923c1e1fa2e995d976e9ad2c8b56ccc9bbd83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 074cb35bdb3647df61aa628775c7eac68cf1716882fe4986081257b5c696f7d273339acad2cc18ec603b91d46fb28e92e5661c36f44e95525196b16cfd68de24
|
7
|
+
data.tar.gz: 6c47f3cae2e44665c1ebbdef690e5f6b2deef757606c085f28c62e822683af449b89a3e622f4e32f2208d255db3631fdd25ede4d960335a0ef18ac340302cb3d
|
data/lib/dokku_cli/ps.rb
CHANGED
@@ -4,7 +4,8 @@ module DokkuCli
|
|
4
4
|
map "ps:rebuild" => "ps_rebuild",
|
5
5
|
"ps:restart" => "ps_restart",
|
6
6
|
"ps:start" => "ps_start",
|
7
|
-
"ps:stop" => "ps_stop"
|
7
|
+
"ps:stop" => "ps_stop",
|
8
|
+
"ps:scale" => "ps_scale"
|
8
9
|
|
9
10
|
desc "ps", "List processes running in app container(s)"
|
10
11
|
def ps
|
@@ -30,5 +31,14 @@ module DokkuCli
|
|
30
31
|
def ps_stop
|
31
32
|
run_command "ps:stop #{app_name}"
|
32
33
|
end
|
34
|
+
|
35
|
+
desc "ps:scale", "Scale the app processes"
|
36
|
+
def ps_scale(*processes)
|
37
|
+
if processes.empty?
|
38
|
+
run_command "ps:scale #{app_name}"
|
39
|
+
else
|
40
|
+
run_command "ps:scale #{app_name} #{processes.join(' ')}"
|
41
|
+
end
|
42
|
+
end
|
33
43
|
end
|
34
44
|
end
|
data/lib/dokku_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dokku-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Szturo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -46,13 +46,7 @@ executables:
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
-
- ".gitignore"
|
50
|
-
- Gemfile
|
51
|
-
- LICENSE.txt
|
52
|
-
- README.md
|
53
|
-
- Rakefile
|
54
49
|
- bin/dokku
|
55
|
-
- dokku-cli.gemspec
|
56
50
|
- lib/dokku_cli.rb
|
57
51
|
- lib/dokku_cli/certs.rb
|
58
52
|
- lib/dokku_cli/config.rb
|
@@ -82,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
76
|
version: '0'
|
83
77
|
requirements: []
|
84
78
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.5.
|
79
|
+
rubygems_version: 2.5.2
|
86
80
|
signing_key:
|
87
81
|
specification_version: 4
|
88
82
|
summary: Command line tool for Dokku.
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2015 Sebastian Szturo
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
DELETED
@@ -1,106 +0,0 @@
|
|
1
|
-
# Dokku CLI :anchor:
|
2
|
-
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/dokku-cli.svg)](http://badge.fury.io/rb/dokku-cli)
|
4
|
-
[![Downloads](http://ruby-gem-downloads-badge.herokuapp.com/dokku-cli?type=total)](http://badge.fury.io/rb/dokku-cli)
|
5
|
-
|
6
|
-
Dokku CLI is a zero config command line tool for the official version of [Dokku](https://github.com/progrium/dokku).
|
7
|
-
|
8
|
-
## Installation
|
9
|
-
```
|
10
|
-
$ gem install dokku-cli
|
11
|
-
```
|
12
|
-
|
13
|
-
## Usage
|
14
|
-
|
15
|
-
Dokku CLI reads the domain of your Dokku server from your git remote called dokku and requires no configuration. Change in your application directory and run ``dokku``
|
16
|
-
|
17
|
-
|
18
|
-
## Remote Commands
|
19
|
-
|
20
|
-
```
|
21
|
-
dokku run <cmd> # Run a one-off command in the environment of the app
|
22
|
-
```
|
23
|
-
|
24
|
-
## Configuration Management
|
25
|
-
|
26
|
-
```
|
27
|
-
dokku config # Display the app's environment variables
|
28
|
-
dokku config:get KEY # Display an environment variable value
|
29
|
-
dokku config:set KEY1=VALUE1 [KEY2=VALUE2 ...] # Set one or more environment variables
|
30
|
-
dokku config:set:file <path/to/file> # Set one or more environment variables from file
|
31
|
-
dokku config:unset KEY1 [KEY2 ...] # Unset one or more environment variables
|
32
|
-
```
|
33
|
-
|
34
|
-
## Process/Container Management
|
35
|
-
|
36
|
-
```
|
37
|
-
dokku ps # List processes running in app container(s)
|
38
|
-
dokku ps:rebuild # Rebuild the app
|
39
|
-
dokku ps:restart # Restart the app container
|
40
|
-
dokku ps:start # Start the app container
|
41
|
-
dokku ps:stop # Stop the app container
|
42
|
-
```
|
43
|
-
|
44
|
-
## Add SSH key
|
45
|
-
```
|
46
|
-
dokku keys:add .ssh/id_rsa.pub Description
|
47
|
-
```
|
48
|
-
|
49
|
-
## Multiple Remote Apps/Servers (e.g. Staging)
|
50
|
-
|
51
|
-
You can use the global option ``--remote`` to run commands on a different server/app from a remote branch. For more details see [heroku's guide](https://devcenter.heroku.com/articles/multiple-environments) for multiple environments for an app.
|
52
|
-
|
53
|
-
```
|
54
|
-
dokku run rails c --remote=staging
|
55
|
-
dokku config --remote=staging
|
56
|
-
```
|
57
|
-
|
58
|
-
## All commands
|
59
|
-
|
60
|
-
```
|
61
|
-
$ dokku help
|
62
|
-
Commands:
|
63
|
-
dokku certs:add CRT KEY # Add an ssl endpoint to an app. Can also import from a tarball on stdin.
|
64
|
-
dokku certs:generate DOMAIN # Generate a key and certificate signing request (and self-signed certificate)
|
65
|
-
dokku certs:info # Show certificate information for an ssl endpoint.
|
66
|
-
dokku certs:update CRT KEY # Update an SSL Endpoint on an app. Can also import from a tarball on stdin
|
67
|
-
dokku config # Display the app's environment variables
|
68
|
-
dokku config:get KEY # Display an environment variable value
|
69
|
-
dokku config:set KEY1=VALUE1 [KEY2=VALUE2 ...] # Set one or more environment variables
|
70
|
-
dokku config:set:file path/to/file # Set one or more environment variables from file
|
71
|
-
dokku config:unset KEY1 [KEY2 ...] # Unset one or more environment variables
|
72
|
-
dokku domains # List custom domains for the app
|
73
|
-
dokku domains:add DOMAIN # Add a custom domain to the app
|
74
|
-
dokku domains:clear # Clear all custom domains for app
|
75
|
-
dokku domains:remove DOMAIN # Remove a custom domain from the app
|
76
|
-
dokku events # Show the last events (-t follows)
|
77
|
-
dokku events:list # List logged events
|
78
|
-
dokku events:off # Disable events logger
|
79
|
-
dokku events:on # Enable events logger
|
80
|
-
dokku help [COMMAND] # Describe available commands or one specific command
|
81
|
-
dokku keys:add PATH DESCRIPTION # Add the ssh key to your dokku machine.
|
82
|
-
dokku logs [-n num] [-p ps] [-q quiet [-t tail] # Display logs for the app
|
83
|
-
dokku nginx:access-logs # Show the nginx access logs for an application
|
84
|
-
dokku nginx:build # (Re)builds nginx config for the app
|
85
|
-
dokku nginx:error-logs # Show the nginx access logs for an application
|
86
|
-
dokku open # Open the app in your default browser
|
87
|
-
dokku ps # List processes running in app container(s)
|
88
|
-
dokku ps:rebuild # Rebuild the app
|
89
|
-
dokku ps:restart # Restart the app container
|
90
|
-
dokku ps:start # Start the app container
|
91
|
-
dokku run <cmd> # Run a one-off command in the environment of the app
|
92
|
-
dokku ssh # Start an SSH session as root user
|
93
|
-
dokku url # Show the first URL for the app
|
94
|
-
dokku urls # Show all URLs for the app
|
95
|
-
|
96
|
-
Options:
|
97
|
-
[--remote=REMOTE]
|
98
|
-
```
|
99
|
-
|
100
|
-
## Contributing
|
101
|
-
|
102
|
-
1. Fork it ( https://github.com/[my-github-username]/dokku-cli/fork )
|
103
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
104
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
105
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
106
|
-
5. Create a new Pull Request
|
data/Rakefile
DELETED
data/dokku-cli.gemspec
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'dokku_cli/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "dokku-cli"
|
8
|
-
spec.version = DokkuCli::VERSION
|
9
|
-
spec.authors = ["Sebastian Szturo"]
|
10
|
-
spec.email = ["s.szturo@me.com"]
|
11
|
-
spec.description = "Command line tool for Dokku."
|
12
|
-
spec.summary = "Command line tool for Dokku."
|
13
|
-
spec.homepage = "http://github.com/SebastianSzturo/dokku-cli"
|
14
|
-
spec.license = "MIT"
|
15
|
-
|
16
|
-
spec.files = `git ls-files`.split($/)
|
17
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = ["lib"]
|
20
|
-
|
21
|
-
spec.add_dependency "thor", "~> 0.19"
|
22
|
-
spec.add_development_dependency "bundler", "~> 1.7"
|
23
|
-
end
|