capistrano-rails-logs 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0637e094574c4f8cbf12aec7ebec1219edaf893d
4
+ data.tar.gz: 78437f3556f7b33ee06f7d526315dc3dde4b42d6
5
+ SHA512:
6
+ metadata.gz: 26519981d40c31c415ae83bfe47008c47020b8de947b2c3945028839439de1b4502aabce70ae99bcf398b7cc8a60ddfcea87063095557cb2b3b127ed3aede43a
7
+ data.tar.gz: f8904b982297ac63e6bd1953cb8ef26614c28e1993f0c4d147ae86fa9a53d246d3e689040aa5ad61dbc862cf47502e8f51b5aa758e3673f077bbf20b76dd6d35
@@ -0,0 +1,20 @@
1
+ Copyright 2014 Tiago Scolari
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,19 @@
1
+ = CapistranoRailsLogs
2
+
3
+ Simple remote log outputing for rails apps using capistrano 3.
4
+
5
+ == Installation
6
+
7
+ ```ruby Gemfile
8
+ gem 'capistrano-rails-logs'
9
+ ```
10
+
11
+ ```ruby Capifile
12
+ require 'capistrano/rails/logs'
13
+ ```
14
+
15
+ ```bash
16
+ cap production logs:full # Full log output
17
+ cap production logs:tail # Last 50 lines of the log
18
+ ```
19
+
@@ -0,0 +1,21 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'CapistranoRailsLog'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+
18
+
19
+
20
+ Bundler::GemHelper.install_tasks
21
+
File without changes
@@ -0,0 +1,3 @@
1
+ module CapistranoRailsLogs
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1 @@
1
+ load File.expand_path("../../tasks/logs.rake", __FILE__)
@@ -0,0 +1,19 @@
1
+ namespace :logs do
2
+ desc "Ouputs the tail from remote log"
3
+ task :tail do
4
+ on roles(:app) do
5
+ within current_path do
6
+ puts(capture :tail, "-n 50 log/#{fetch(:rails_env) || 'production'}.log")
7
+ end
8
+ end
9
+ end
10
+
11
+ desc "Ouputs the full remote log"
12
+ task :full do
13
+ on roles(:app) do
14
+ within current_path do
15
+ puts(capture :cat, "log/#{fetch(:rails_env) || 'production'}.log")
16
+ end
17
+ end
18
+ end
19
+ end
metadata ADDED
@@ -0,0 +1,65 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-rails-logs
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Tiago Scolari
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-08-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: capistrano
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ description: Outputs remote rails log using capistrano.
28
+ email:
29
+ - tscolari@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - MIT-LICENSE
35
+ - README.rdoc
36
+ - Rakefile
37
+ - lib/capistrano-rails-logs.rb
38
+ - lib/capistrano-rails-logs/version.rb
39
+ - lib/capistrano/rails/logs.rb
40
+ - lib/capistrano/tasks/logs.rake
41
+ homepage: https://github.com/tscolari/capistrano-rails-log
42
+ licenses:
43
+ - MIT
44
+ metadata: {}
45
+ post_install_message:
46
+ rdoc_options: []
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ requirements: []
60
+ rubyforge_project:
61
+ rubygems_version: 2.2.2
62
+ signing_key:
63
+ specification_version: 4
64
+ summary: Capistrano tasks to output rails log
65
+ test_files: []