factorylabs-fdlcap 0.3.9 → 0.3.10

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.9
1
+ 0.3.10
data/fdlcap.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{fdlcap}
5
- s.version = "0.3.9"
5
+ s.version = "0.3.10"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Factory Design Labs"]
9
- s.date = %q{2009-07-20}
9
+ s.date = %q{2009-07-31}
10
10
  s.default_executable = %q{fdlcap}
11
11
  s.email = %q{interactive@factorylabs.com}
12
12
  s.executables = ["fdlcap"]
@@ -12,7 +12,7 @@ Capistrano::Configuration.instance(:must_exist).load do
12
12
  end
13
13
 
14
14
  desc "Tail the Rails log for this environment"
15
- task :tail_logs, :roles => :utility do
15
+ task :tail_logs, :roles => :app do
16
16
  run "tail -f #{shared_path}/log/#{rails_env}.log" do |channel, stream, data|
17
17
  puts # for an extra line break before the host name
18
18
  puts "#{channel[:server]} -> #{data}"
@@ -20,6 +20,24 @@ Capistrano::Configuration.instance(:must_exist).load do
20
20
  end
21
21
  end
22
22
 
23
+ desc "Tail the system log for this environment"
24
+ task :tail_syslog, :roles => :app do
25
+ sudo "tail -f /var/log/syslog" do |channel, stream, data|
26
+ puts # for an extra line break before the host name
27
+ puts "#{channel[:server]} -> #{data}"
28
+ break if stream == :err
29
+ end
30
+ end
31
+
32
+ desc "Tail the message log for this environment"
33
+ task :tail_messages, :roles => :app do
34
+ sudo "tail -f /var/log/messages" do |channel, stream, data|
35
+ puts # for an extra line break before the host name
36
+ puts "#{channel[:server]} -> #{data}"
37
+ break if stream == :err
38
+ end
39
+ end
40
+
23
41
  desc <<-DESC
24
42
  grep the production.log to find long running queries
25
43
  DESC
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factorylabs-fdlcap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Factory Design Labs
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-20 00:00:00 -07:00
12
+ date: 2009-07-31 00:00:00 -07:00
13
13
  default_executable: fdlcap
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -105,6 +105,7 @@ files:
105
105
  - test/test_helper.rb
106
106
  has_rdoc: false
107
107
  homepage: http://github.com/factorylabs/fdlcap
108
+ licenses:
108
109
  post_install_message:
109
110
  rdoc_options:
110
111
  - --charset=UTF-8
@@ -125,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
126
  requirements: []
126
127
 
127
128
  rubyforge_project:
128
- rubygems_version: 1.2.0
129
+ rubygems_version: 1.3.5
129
130
  signing_key:
130
131
  specification_version: 3
131
132
  summary: a set of capistrano recipies we use regularly at Factory Design Labs