dokku-cli 0.2.1 → 0.2.2
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/lib/dokku_cli.rb +15 -6
- data/lib/dokku_cli/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: ddaff5f5a26087b62129101aafa90e0847561e84
|
4
|
+
data.tar.gz: 83fe21be55646fc8e90fa1ddc09985fd32388461
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfffcc5964a3a74b6c583fba74872a434b198c75661ea0654d52a5fe177055ba03d0bab6c7d5059e1bcb2570df43e57e936dd26b2b887a865f24603a1f91b3b2
|
7
|
+
data.tar.gz: 763c46b1832eb24f8cddf2466505ec27b906ca87698e3ad693922d6bc248ffa5f3bf1e6dc080e6ddecedfb0de88ab18f7dc43468f740c778754d3b383f8e04c5
|
data/lib/dokku_cli.rb
CHANGED
@@ -10,14 +10,23 @@ module DokkuCli
|
|
10
10
|
class Cli < Thor
|
11
11
|
class_option :remote
|
12
12
|
|
13
|
-
desc "logs [-t]", "Display logs for the app
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
desc "logs [-n num] [-p ps] [-q quiet [-t tail]", "Display logs for the app"
|
14
|
+
method_option :n, type: :numeric, aliases: %w{-num --num},
|
15
|
+
desc: "Limit to <n> number of lines"
|
16
|
+
method_option :p, type: :string, aliases: %w{-ps --ps},
|
17
|
+
desc: "Filter by <p> process"
|
18
|
+
method_option :q, type: :boolean, aliases: %w{-quiet --quiet},
|
19
|
+
desc: "Remove docker prefixes from output"
|
20
|
+
method_option :t, type: :boolean, aliases: %w{-tail --tail},
|
21
|
+
desc: "Follow output"
|
22
|
+
def logs
|
23
|
+
args = options.map{|k, v| "-#{k} #{v}"}.join(" ")
|
24
|
+
if args.empty?
|
25
|
+
run_command "logs #{app_name}"
|
26
|
+
else
|
27
|
+
command = "ssh dokku@#{domain} logs #{app_name} #{args}"
|
17
28
|
puts "Running #{command}..."
|
18
29
|
exec(command)
|
19
|
-
else
|
20
|
-
run_command "logs #{app_name}"
|
21
30
|
end
|
22
31
|
end
|
23
32
|
|
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.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Szturo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|