capistrano-auth-subscriber 0.0.1

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: 10f54d36409b8c988c8e9908d73d58cee43a0b6c
4
+ data.tar.gz: dc4b21f8cdc1f9ae228a54ace70f716ac0b39c8d
5
+ SHA512:
6
+ metadata.gz: 1226d74a08e09090997eac11b4e32b8e42fc21ecd5a7ae575518d4bd42a8c55f46e15e3477eb5ab691e78b77603fb38ebabc4c43611438ea6299fcbf1e35cc3c
7
+ data.tar.gz: e97e0e693646f1f6a6d5ca7bd2d0c6fee3f5d3484311327a4ecdb6aa59cce4f2b714b9604ed3f1a36460ac434c7749afe83d785b4a7a78365e09bbd022a9bf84
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ Gemfile.lock
2
+ .ruby-version
3
+ .ruby-gemset
4
+ pkg/
data/CHANGELOG.md ADDED
@@ -0,0 +1 @@
1
+ # Capistrano Auth subscriber
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Matthew Lineen
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,18 @@
1
+ # Capistrano Auth-subscriber
2
+
3
+ ### Setup
4
+
5
+ Add the library to your `Gemfile`:
6
+
7
+ ```ruby
8
+ group :development do
9
+ gem 'capistrano-auth-subscriber'
10
+ end
11
+ ```
12
+
13
+ Add the library to your `Capfile`:
14
+
15
+ ```ruby
16
+ require 'capistrano/auth-subscriber'
17
+ ```
18
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,19 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.name = "capistrano-auth-subscriber"
6
+ gem.version = '0.0.1'
7
+ gem.authors = ["OpenTeam"]
8
+ gem.email = ["developers@openteam.ru"]
9
+ gem.description = "Capistrano auth-subscriber tasks"
10
+ gem.summary = "Capistrano auth-subscriber tasks"
11
+ gem.homepage = "https://github.com/openteam-tusur/capistrano-auth-subscriber"
12
+ gem.license = "MIT"
13
+
14
+ gem.files = `git ls-files`.split($/)
15
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
+ gem.require_paths = ["lib"]
17
+
18
+ gem.add_runtime_dependency 'capistrano', '~> 3.1'
19
+ end
data/lib/capistrano.rb ADDED
File without changes
@@ -0,0 +1,2 @@
1
+ load File.expand_path("../tasks/subscriber.rake", __FILE__)
2
+ load File.expand_path("../hooks.rb", __FILE__)
@@ -0,0 +1 @@
1
+ after 'unicorn:restart', 'subscriber:restart'
@@ -0,0 +1,34 @@
1
+ namespace :subscriber do
2
+ desc 'Start subscriber'
3
+ task :start do
4
+ on roles(:app) do
5
+ within current_path do
6
+ with rails_env: fetch(:rails_env) do
7
+ execute :bundle, "exec rake subscriber:start"
8
+ end
9
+ end
10
+ end
11
+ end
12
+
13
+ desc 'Stop subscriber'
14
+ task :stop do
15
+ on roles(:app) do
16
+ within current_path do
17
+ with rails_env: fetch(:rails_env) do
18
+ execute :bundle, "exec rake subscriber:stop"
19
+ end
20
+ end
21
+ end
22
+ end
23
+
24
+ desc 'Restart subscriber'
25
+ task :restart do
26
+ on roles(:app) do
27
+ within current_path do
28
+ with rails_env: fetch(:rails_env) do
29
+ execute :bundle, "exec rake subscriber:restart"
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-auth-subscriber
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - OpenTeam
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-09-29 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
+ description: Capistrano auth-subscriber tasks
28
+ email:
29
+ - developers@openteam.ru
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".gitignore"
35
+ - CHANGELOG.md
36
+ - Gemfile
37
+ - LICENSE
38
+ - README.md
39
+ - Rakefile
40
+ - capistrano-auth-subscriber.gemspec
41
+ - lib/capistrano.rb
42
+ - lib/capistrano/auth-subscriber.rb
43
+ - lib/capistrano/hooks.rb
44
+ - lib/capistrano/tasks/subscriber.rake
45
+ homepage: https://github.com/openteam-tusur/capistrano-auth-subscriber
46
+ licenses:
47
+ - MIT
48
+ metadata: {}
49
+ post_install_message:
50
+ rdoc_options: []
51
+ require_paths:
52
+ - lib
53
+ required_ruby_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ requirements: []
64
+ rubyforge_project:
65
+ rubygems_version: 2.2.2
66
+ signing_key:
67
+ specification_version: 4
68
+ summary: Capistrano auth-subscriber tasks
69
+ test_files: []