capistrano-rails-log 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7bb8e9eb9b706dbaf048e645f2b9f59af272855d
4
+ data.tar.gz: 4cc45fd12756f19365a4c2e024f0484b96a014d4
5
+ SHA512:
6
+ metadata.gz: a0882a124155bc6d5d9d5c9f46e717ec691ac475604d61b35024f0c80a5f99db2101bfc8d3e8e14516115cdb32526d3b0e35557b95fd1a2c81bec0b9d86a5417
7
+ data.tar.gz: 62087375e959f0cf4d01d8b602139f5159e912c70aceb58b036672432a73d54e5858e1aa882873422756bb0c8b00a8a049a807cc00226c621bab0df327f4220d
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-rails-log.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Fernando Blat
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,53 @@
1
+ [![Gem Version](https://img.shields.io/gem/v/capistrano-rails-log.svg)](https://rubygems.org/gems/capistrano-rails-log)
2
+ [![Dependencies](https://img.shields.io/gemnasium/ferblape/capistrano-rails-log.svg)](https://gemnasium.com/ferblape/capistrano-rails-log)
3
+ [![Code Climate](https://img.shields.io/codeclimate/github/ferblape/capistrano-rails-log.svg)](https://codeclimate.com/github/ferblape/capistrano-rails-log)
4
+
5
+
6
+ # Capistrano::Rails::Log
7
+
8
+ Remote rails logs for capistrano
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ ```ruby
15
+ gem 'capistrano-rails-log'
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ $ bundle
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install capistrano-rails-log
25
+
26
+ ## Usage
27
+
28
+ Require in `Capfile` to use the default task:
29
+
30
+ ```ruby
31
+ require 'capistrano/rails/log'
32
+ ```
33
+
34
+ This will add a task `rails:log`:
35
+
36
+ $ cap production rails:log
37
+
38
+ You can also start a sandbox session:
39
+
40
+ $ cap production rails:log sandbox=1
41
+
42
+ ## Contributing
43
+
44
+ 1. Fork it
45
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
46
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
47
+ 4. Push to the branch (`git push origin my-new-feature`)
48
+ 5. Create new Pull Request
49
+
50
+ ## Special thanks
51
+
52
+ This gem has been totally inspired by [capistrano-rails-console](https://github.com/ydkn/capistrano-rails-console) and [this post](http://www.talkingquickly.co.uk/2013/12/tailing-log-files-with-capistrano-3/) from
53
+ [talkinquickly](http://www.talkingquickly.co.uk). All the merit is theirs.
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'capistrano-rails-log'
7
+ spec.version = '1.0.0'
8
+ spec.authors = ['Fernando Blat']
9
+ spec.email = ['ferblape@gmail.com']
10
+ spec.description = %q{Remote rails log for capistrano}
11
+ spec.summary = %q{Remote rails log for capistrano}
12
+ spec.homepage = 'https://github.com/ferblape/capistrano-rails-log'
13
+ spec.license = 'MIT'
14
+
15
+ spec.files = `git ls-files`.split($/)
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_dependency 'capistrano', '>= 3.1.0', '< 4.0.0'
21
+
22
+ spec.add_development_dependency 'bundler'
23
+ spec.add_development_dependency 'rake'
24
+ spec.add_development_dependency 'yard'
25
+ end
File without changes
@@ -0,0 +1 @@
1
+ require 'capistrano/rails/log'
@@ -0,0 +1 @@
1
+ load File.expand_path('../../tasks/log.rake', __FILE__)
@@ -0,0 +1,8 @@
1
+ namespace :rails do
2
+ desc "Tail Rails remote log"
3
+ task :log do
4
+ on roles(:app) do
5
+ execute "tail -f #{shared_path}/log/#{fetch(:rails_env)}.log"
6
+ end
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,117 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-rails-log
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Fernando Blat
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-10-09 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.1.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 4.0.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 3.1.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 4.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: bundler
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: yard
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ description: Remote rails log for capistrano
76
+ email:
77
+ - ferblape@gmail.com
78
+ executables: []
79
+ extensions: []
80
+ extra_rdoc_files: []
81
+ files:
82
+ - ".gitignore"
83
+ - Gemfile
84
+ - LICENSE.txt
85
+ - README.md
86
+ - Rakefile
87
+ - capistrano-rails-log.gemspec
88
+ - lib/capistrano-rails-log.rb
89
+ - lib/capistrano/rails.rb
90
+ - lib/capistrano/rails/log.rb
91
+ - lib/capistrano/tasks/log.rake
92
+ homepage: https://github.com/ferblape/capistrano-rails-log
93
+ licenses:
94
+ - MIT
95
+ metadata: {}
96
+ post_install_message:
97
+ rdoc_options: []
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirements: []
111
+ rubyforge_project:
112
+ rubygems_version: 2.4.5.1
113
+ signing_key:
114
+ specification_version: 4
115
+ summary: Remote rails log for capistrano
116
+ test_files: []
117
+ has_rdoc: