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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e758ac7c9185a92938989a5138150b492f7a70ca
4
- data.tar.gz: ea650ff1ab6dfd0bc46973d866079f7c85010409
3
+ metadata.gz: ddaff5f5a26087b62129101aafa90e0847561e84
4
+ data.tar.gz: 83fe21be55646fc8e90fa1ddc09985fd32388461
5
5
  SHA512:
6
- metadata.gz: 7b4ae2e9a87c9a8c116e63860cb834bba124f2e9141232442faa368573996d4d84366eaa42a50a861302d81837e2c1c8bf29f73669a384453d0e8f0848c8b203
7
- data.tar.gz: 0496c5e096427843640baf966a226992ff958eb45c9cdbc3a661acae8c6d40f96e1d6f457a71c1bde92cce8042e4589028eafa50335b7787b82e2434f0b8416d
6
+ metadata.gz: bfffcc5964a3a74b6c583fba74872a434b198c75661ea0654d52a5fe177055ba03d0bab6c7d5059e1bcb2570df43e57e936dd26b2b887a865f24603a1f91b3b2
7
+ data.tar.gz: 763c46b1832eb24f8cddf2466505ec27b906ca87698e3ad693922d6bc248ffa5f3bf1e6dc080e6ddecedfb0de88ab18f7dc43468f740c778754d3b383f8e04c5
@@ -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 (-t follows)"
14
- def logs(*args)
15
- if args.first && args.first.strip == "-t"
16
- command = "ssh dokku@#{domain} logs #{app_name} -t"
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
 
@@ -1,3 +1,3 @@
1
1
  module DokkuCli
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-06 00:00:00.000000000 Z
11
+ date: 2015-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor