ssp 0.6 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ssp/application/remote.rb +2 -2
- data/lib/ssp/version.rb +1 -1
- metadata +3 -2
@@ -72,7 +72,7 @@ class SSP::App::Remote < Thor
|
|
72
72
|
:desc => "Host or project name (e.g. sage or dtm)"
|
73
73
|
method_option :date, :aliases => "-D",
|
74
74
|
:desc => "The date of the logfile you're interested in. Defaults to today, turns off tailing if this is in the past.",
|
75
|
-
:default =>
|
75
|
+
:default => Time.now.utc.strftime("%Y-%m-%d")
|
76
76
|
method_option :history, :aliases => "-N",
|
77
77
|
:desc => "How many lines to show from the past",
|
78
78
|
:default => 10
|
@@ -82,7 +82,7 @@ class SSP::App::Remote < Thor
|
|
82
82
|
@working_dir += '/' + options[:date].tr('-', '/')
|
83
83
|
|
84
84
|
@dont_print_hosts = true
|
85
|
-
tail = "-f " if
|
85
|
+
tail = "-f " if options[:date] == Time.now.utc.strftime("%Y-%m-%d")
|
86
86
|
command(options[:node], "tail -n#{options[:history]} #{tail}#{logfile}")
|
87
87
|
rescue Interrupt
|
88
88
|
# we don't care about interrupting a tail
|
data/lib/ssp/version.rb
CHANGED
metadata
CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
|
8
|
+
- 1
|
9
|
+
version: 0.6.1
|
9
10
|
platform: ruby
|
10
11
|
authors:
|
11
12
|
- "L\xC3\xA1szl\xC3\xB3 B\xC3\xA1csi"
|
@@ -13,7 +14,7 @@ autorequire:
|
|
13
14
|
bindir: bin
|
14
15
|
cert_chain: []
|
15
16
|
|
16
|
-
date: 2010-10-
|
17
|
+
date: 2010-10-22 00:00:00 +02:00
|
17
18
|
default_executable:
|
18
19
|
dependencies:
|
19
20
|
- !ruby/object:Gem::Dependency
|