capistrano-rails-logs-tail 1.0.3

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f28fee0b45d8b993b9ac0675282230f6ea9b08c4
4
+ data.tar.gz: 6f24c971a7487dd8bf6e28a4e115fd6dded61989
5
+ SHA512:
6
+ metadata.gz: 77d468798e4b9c5ed6df6415a37e7da75af373cd41fb98fd0842e428be084cb30b783dc9d4a9e043e56e8b25c26f18a7b3715635107f2de95d4dd2f6f3ea6992
7
+ data.tar.gz: bf929b6b1a9120864c43793304a4049b6123d16efccb84d02870f132f2ec36ba9806732a159e85808e72724ddc1346f400d1c891e0369262231a3252d5e51bb6
@@ -0,0 +1,22 @@
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
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-rails-tail-log.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 ayaya
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.
@@ -0,0 +1,26 @@
1
+ # Capistrano::Rails::Logs
2
+
3
+ Tail logs from Ruby on Rails server.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'capistrano-rails-logs-tail'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ ## Usage
16
+
17
+ 1. Add `require 'capistrano/rails/logs'` in your `Capfile`.
18
+ 2. Run task to tail your logs: `cap staging rails:logs`
19
+
20
+ ## Contributing
21
+
22
+ 1. Fork it ( https://github.com/ayamomiji/capistrano-rails-tail-log/fork )
23
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
24
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
25
+ 4. Push to the branch (`git push origin my-new-feature`)
26
+ 5. Create a new Pull Request
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'capistrano/rails/logs/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'capistrano-rails-logs-tail'
8
+ spec.version = Capistrano::Rails::Logs::VERSION
9
+ spec.authors = ['ayaya', 'oss92']
10
+ spec.email = ['ayaya@ayaya.tw', 'oss@findhotel.net']
11
+ spec.summary = %q(Tail logs from Ruby on Rails server.)
12
+ spec.description = %q(A capistrano task to tail logs from Ruby on Rails server.)
13
+ spec.homepage = 'https://github.com/FindHotel/capistrano-rails-logs-tail'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.add_dependency 'capistrano', '>= 3.4.0', '< 4.0.0'
22
+ spec.add_dependency 'capistrano-rails'
23
+
24
+ spec.add_development_dependency 'bundler', '~> 1.6'
25
+ spec.add_development_dependency 'rake'
26
+ end
File without changes
@@ -0,0 +1,3 @@
1
+ require 'capistrano/rails/logs/version'
2
+
3
+ load File.expand_path('../logs/tasks.cap', __FILE__)
@@ -0,0 +1,9 @@
1
+ namespace :rails do
2
+ desc "Tail rails logs from server"
3
+ task :logs do
4
+ SSHKit.config.output_verbosity = Logger::DEBUG
5
+ on roles(:app) do
6
+ execute "tail -f #{current_path}/log/#{fetch(:rails_env)}.log"
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ module Capistrano
2
+ module Rails
3
+ module Logs
4
+ VERSION = '1.0.3'
5
+ end
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,118 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-rails-logs-tail
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.3
5
+ platform: ruby
6
+ authors:
7
+ - ayaya
8
+ - oss92
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-09-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: capistrano
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: 3.4.0
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: 4.0.0
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: 3.4.0
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: 4.0.0
34
+ - !ruby/object:Gem::Dependency
35
+ name: capistrano-rails
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ type: :runtime
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: bundler
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.6'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.6'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rake
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ description: A capistrano task to tail logs from Ruby on Rails server.
77
+ email:
78
+ - ayaya@ayaya.tw
79
+ - oss@findhotel.net
80
+ executables: []
81
+ extensions: []
82
+ extra_rdoc_files: []
83
+ files:
84
+ - ".gitignore"
85
+ - Gemfile
86
+ - LICENSE.txt
87
+ - README.md
88
+ - Rakefile
89
+ - capistrano-rails-logs-tail.gemspec
90
+ - lib/capistrano-rails-logs-tail.rb
91
+ - lib/capistrano/rails/logs.rb
92
+ - lib/capistrano/rails/logs/tasks.cap
93
+ - lib/capistrano/rails/logs/version.rb
94
+ homepage: https://github.com/FindHotel/capistrano-rails-logs-tail
95
+ licenses:
96
+ - MIT
97
+ metadata: {}
98
+ post_install_message:
99
+ rdoc_options: []
100
+ require_paths:
101
+ - lib
102
+ required_ruby_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ requirements: []
113
+ rubyforge_project:
114
+ rubygems_version: 2.6.7
115
+ signing_key:
116
+ specification_version: 4
117
+ summary: Tail logs from Ruby on Rails server.
118
+ test_files: []