capistrano-eye 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: ffbf710dc6da72376fedb970d0d26359f1fd63a4
4
+ data.tar.gz: 0037bd22f92d7263f1d26175cda6217b07fba428
5
+ SHA512:
6
+ metadata.gz: 90b3a97f026ecec6f7d8b9831645d9b327b2eb318aaf1cfdf555df5026feb9f8b25dca690678367fadeb743a1ccd21ef4c12932c709937d60d155cf3f7f6b40b
7
+ data.tar.gz: c54f3115b15d29721cc30118fee6a004954c1b212d6df3474fc51a500130ddf1a992db96d4dd253577c2379658c3ce4e4e2d54638d643e22db18ff4d77ff04b5
@@ -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-eye.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Alex Sergeyev
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,25 @@
1
+ # Capistrano::Eye
2
+
3
+ Wrap all application processes by [eye]('https://github.com/kostya/eye') monitoring tool.
4
+
5
+ ## Installation
6
+
7
+
8
+ gem 'capistrano-eye', github: 'alexsergeyev/capistrano-eye'
9
+
10
+ Enable it in Capfile
11
+
12
+ require 'capistrano/eye'
13
+
14
+
15
+ ## Configuration
16
+ set :eye_application # capistrano application name by default
17
+ set :eye_config, # ./config/eye_application.eye
18
+
19
+ ## Contributing
20
+
21
+ 1. Fork it ( https://github.com/[my-github-username]/capistrano-eye/fork )
22
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
23
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
24
+ 4. Push to the branch (`git push origin my-new-feature`)
25
+ 5. Create a new Pull Request
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,20 @@
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 |gem|
6
+ gem.name = 'capistrano-eye'
7
+ gem.version = '0.0.1'
8
+ gem.authors = ['Alex Sergeyev']
9
+ gem.email = ['alex.sergeyev@gmail.com']
10
+ gem.summary = %q(Capistrano eye tasks)
11
+ gem.description = %q(Capistrano tasks for manage and monitor processes by eye)
12
+ gem.homepage = 'http://github.com/alexsergeyev/capistrano-eye'
13
+ gem.license = 'MIT'
14
+
15
+ gem.files = `git ls-files -z`.split("\x0")
16
+ gem.require_paths = ['lib']
17
+
18
+ gem.add_dependency 'capistrano', '~> 3.1'
19
+ gem.add_dependency 'sshkit', '~> 1.2'
20
+ end
@@ -0,0 +1 @@
1
+ load File.expand_path("../tasks/eye.rake", __FILE__)
@@ -0,0 +1,27 @@
1
+ namespace :eye do
2
+ task :load do
3
+ on release_roles(:app) do
4
+ within(release_path) do
5
+ execute :eye, :load, fetch(:eye_config)
6
+ end
7
+ end
8
+ end
9
+
10
+ %w(start stop restart info).each do |cmd|
11
+ task cmd.to_sym do
12
+ on roles(:app) do
13
+ execute :eye, cmd.to_sym, fetch(:eye_application)
14
+ end
15
+ end
16
+ end
17
+
18
+ before :start, :load
19
+ before :restart, :load
20
+ end
21
+
22
+ namespace :load do
23
+ task :defaults do
24
+ set :eye_config, fetch(:eye_config, "./config/#{fetch(:application)}.eye")
25
+ set :eye_application, fetch(:eye_application, fetch(:application))
26
+ end
27
+ end
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-eye
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Alex Sergeyev
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-06-10 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'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sshkit
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.2'
41
+ description: Capistrano tasks for manage and monitor processes by eye
42
+ email:
43
+ - alex.sergeyev@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - capistrano-eye.gemspec
54
+ - lib/capistrano/eye.rb
55
+ - lib/capistrano/tasks/eye.rake
56
+ homepage: http://github.com/alexsergeyev/capistrano-eye
57
+ licenses:
58
+ - MIT
59
+ metadata: {}
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubyforge_project:
76
+ rubygems_version: 2.2.2
77
+ signing_key:
78
+ specification_version: 4
79
+ summary: Capistrano eye tasks
80
+ test_files: []