capistrano_sentinel 0.0.1
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.
- checksums.yaml +7 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +133 -0
- data/LICENSE.txt +20 -0
- data/README.md +38 -0
- data/Rakefile +43 -0
- data/capistrano_sentinel.gemspec +25 -0
- data/lib/capistrano_sentinel.rb +36 -0
- data/lib/capistrano_sentinel/classes/gem_finder.rb +53 -0
- data/lib/capistrano_sentinel/classes/input_stream.rb +34 -0
- data/lib/capistrano_sentinel/classes/output_stream.rb +33 -0
- data/lib/capistrano_sentinel/classes/request_hooks.rb +85 -0
- data/lib/capistrano_sentinel/classes/request_worker.rb +128 -0
- data/lib/capistrano_sentinel/classes/websocket/errors.rb +13 -0
- data/lib/capistrano_sentinel/classes/websocket_client.rb +345 -0
- data/lib/capistrano_sentinel/helpers/actor.rb +52 -0
- data/lib/capistrano_sentinel/helpers/application_helper.rb +47 -0
- data/lib/capistrano_sentinel/helpers/logging.rb +79 -0
- data/lib/capistrano_sentinel/initializers/active_support/blank.rb +143 -0
- data/lib/capistrano_sentinel/initializers/active_support/hash_keys.rb +172 -0
- data/lib/capistrano_sentinel/patches/bundler.rb +24 -0
- data/lib/capistrano_sentinel/patches/capistrano2.rb +34 -0
- data/lib/capistrano_sentinel/patches/rake.rb +10 -0
- data/lib/capistrano_sentinel/version.rb +27 -0
- data/spec/spec_helper.rb +7 -0
- metadata +83 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
module Bundler
|
2
|
+
module UI
|
3
|
+
class Shell
|
4
|
+
alias_method :original_tell_me, :tell_me
|
5
|
+
|
6
|
+
def tell_me(msg, color = nil, newline = nil)
|
7
|
+
rake = CapistranoSentinel::RequestHooks.new(msg)
|
8
|
+
rake.show_bundler_progress do
|
9
|
+
original_tell_me(msg, color, newline)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
class << self
|
17
|
+
|
18
|
+
def root=(path)
|
19
|
+
@root = path
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'capistrano/cli'
|
2
|
+
|
3
|
+
HighLine.class_eval do
|
4
|
+
alias_method :original_ask, :ask
|
5
|
+
|
6
|
+
def ask(question, answer_type = String, &details)
|
7
|
+
rake = CapistranoSentinel::RequestHooks.new
|
8
|
+
rake.print_question?(question) do
|
9
|
+
original_ask(question, answer_type, &details)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
Capistrano::Configuration::Execution.class_eval do
|
15
|
+
alias_method :original_execute_task, :execute_task
|
16
|
+
|
17
|
+
def execute_task(task)
|
18
|
+
rake = CapistranoSentinel::RequestHooks.new(task)
|
19
|
+
rake.automatic_hooks do
|
20
|
+
original_execute_task(task)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
Capistrano::Configuration::Callbacks.class_eval do
|
26
|
+
alias_method :original_trigger, :trigger
|
27
|
+
|
28
|
+
def trigger(event, task = nil)
|
29
|
+
rake = CapistranoSentinel::RequestHooks.new(task)
|
30
|
+
rake.automatic_hooks do
|
31
|
+
original_trigger(event, task)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Returns the version of the gem as a <tt>Gem::Version</tt>
|
2
|
+
module CapistranoSentinel
|
3
|
+
# it prints the gem version as a string
|
4
|
+
#
|
5
|
+
# @return [String]
|
6
|
+
#
|
7
|
+
# @api public
|
8
|
+
def self.gem_version
|
9
|
+
Gem::Version.new VERSION::STRING
|
10
|
+
end
|
11
|
+
|
12
|
+
# module used to generate the version string
|
13
|
+
# provides a easy way of getting the major, minor and tiny
|
14
|
+
module VERSION
|
15
|
+
# major release version
|
16
|
+
MAJOR = 0
|
17
|
+
# minor release version
|
18
|
+
MINOR = 0
|
19
|
+
# tiny release version
|
20
|
+
TINY = 1
|
21
|
+
# prelease version ( set this only if it is a prelease)
|
22
|
+
PRE = nil
|
23
|
+
|
24
|
+
# generates the version string
|
25
|
+
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
26
|
+
end
|
27
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capistrano_sentinel
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- bogdanRada
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-07-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: websocket
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: '"Handles capistrano deploy in parallel."'
|
28
|
+
email: raoul_ice@yahoo.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files:
|
33
|
+
- Gemfile
|
34
|
+
- Gemfile.lock
|
35
|
+
- LICENSE.txt
|
36
|
+
- README.md
|
37
|
+
- Rakefile
|
38
|
+
- capistrano_sentinel.gemspec
|
39
|
+
- lib/capistrano_sentinel.rb
|
40
|
+
- lib/capistrano_sentinel/classes/gem_finder.rb
|
41
|
+
- lib/capistrano_sentinel/classes/input_stream.rb
|
42
|
+
- lib/capistrano_sentinel/classes/output_stream.rb
|
43
|
+
- lib/capistrano_sentinel/classes/request_hooks.rb
|
44
|
+
- lib/capistrano_sentinel/classes/request_worker.rb
|
45
|
+
- lib/capistrano_sentinel/classes/websocket/errors.rb
|
46
|
+
- lib/capistrano_sentinel/classes/websocket_client.rb
|
47
|
+
- lib/capistrano_sentinel/helpers/actor.rb
|
48
|
+
- lib/capistrano_sentinel/helpers/application_helper.rb
|
49
|
+
- lib/capistrano_sentinel/helpers/logging.rb
|
50
|
+
- lib/capistrano_sentinel/initializers/active_support/blank.rb
|
51
|
+
- lib/capistrano_sentinel/initializers/active_support/hash_keys.rb
|
52
|
+
- lib/capistrano_sentinel/patches/bundler.rb
|
53
|
+
- lib/capistrano_sentinel/patches/capistrano2.rb
|
54
|
+
- lib/capistrano_sentinel/patches/rake.rb
|
55
|
+
- lib/capistrano_sentinel/version.rb
|
56
|
+
- spec/spec_helper.rb
|
57
|
+
homepage: http://github.com/bogdanRada/capistrano_sentinel
|
58
|
+
licenses:
|
59
|
+
- MIT
|
60
|
+
metadata: {}
|
61
|
+
post_install_message:
|
62
|
+
rdoc_options: []
|
63
|
+
require_paths:
|
64
|
+
- lib
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.9'
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
requirements: []
|
76
|
+
rubyforge_project:
|
77
|
+
rubygems_version: 2.4.8
|
78
|
+
signing_key:
|
79
|
+
specification_version: 4
|
80
|
+
summary: '"capistrano_sentinel"'
|
81
|
+
test_files:
|
82
|
+
- spec/spec_helper.rb
|
83
|
+
has_rdoc:
|