dolphin 0.0.5 → 0.0.6
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 +4 -4
- data/README.md +14 -1
- data/Rakefile +8 -0
- data/dolphin.gemspec +18 -2
- data/lib/dolphin/puma.rb +4 -3
- data/lib/dolphin/version.rb +1 -1
- data/spec/dolphin/base_spec.rb +9 -0
- data/spec/dolphin/deploy_spec.rb +9 -0
- data/spec/dolphin/git_spec.rb +9 -0
- data/spec/dolphin/lock_spec.rb +9 -0
- data/spec/dolphin/nginx_spec.rb +9 -0
- data/spec/dolphin/puma_spec.rb +9 -0
- data/spec/dolphin/setup_spec.rb +9 -0
- data/spec/dolphin/version_spec.rb +9 -0
- data/spec/spec_helper.rb +2 -0
- metadata +31 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0368b3d9bab059dd58cfb9461d066c152f455761
|
4
|
+
data.tar.gz: e6caa9a6aad53d4fd2f3f1dc90c17560173a926e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bc4d81defbd5df890af8af3bd73a144966e8c60bbaf6b8383f09c546dea0c38ba165c49c3acc0a87a3272c1037a081645349a571656cf0d8455e9eb9a30e060
|
7
|
+
data.tar.gz: 51db0ccf7a148455433c178b336bb37fd89b56bbc453f6ff02bacb3944c67e0c9aaf01fdbc82bd44f4d5a41443f02c0ec27a607dd9db3a5eb5c360a412779a5b
|
data/README.md
CHANGED
@@ -1,6 +1,19 @@
|
|
1
1
|
# Dolphin
|
2
2
|
|
3
|
-
|
3
|
+
Dolphin: deploy agilely like dolphins can swim. A multi-threaded multi-stage deployment tool utilizes the full power of Git and Ruby.
|
4
|
+
|
5
|
+
* Bye bye, serial iteration over list of servers;
|
6
|
+
* Welcome, multi-threaded deployment using Parallel gem.
|
7
|
+
* Bye bye, afterthought of the multistage extension;
|
8
|
+
* Welcome, multi-stage deployment built in from inception.
|
9
|
+
* Bye bye, SVN style checkout directories on servers;
|
10
|
+
* Welcome, git repository on servers.
|
11
|
+
* Bye bye, Capistrano style symlink tricks for current / rollback;
|
12
|
+
* Welcome, git checkout.
|
13
|
+
* Bye bye, Rake tasks;
|
14
|
+
* Welcome, Thor actions.
|
15
|
+
* Bye bye, complexity;
|
16
|
+
* Welcome, nimbleness.
|
4
17
|
|
5
18
|
## Installation
|
6
19
|
|
data/Rakefile
CHANGED
data/dolphin.gemspec
CHANGED
@@ -8,11 +8,25 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Dolphin::VERSION
|
9
9
|
spec.authors = ["Neng Xu"]
|
10
10
|
spec.email = ["neng2.xu2@gmail.com"]
|
11
|
-
spec.description = %q{Dolphin: deploy smartly}
|
12
|
-
spec.summary = %q{Dolphin: deploy smartly}
|
13
11
|
spec.homepage = "https://github.com/nengxu/dolphin"
|
14
12
|
spec.license = "MIT"
|
15
13
|
|
14
|
+
spec.description = %q{Dolphin: deploy agilely like dolphins can swim. A multi-threaded multi-stage deployment tool utilizes the full power of Git and Ruby.}
|
15
|
+
spec.summary = %q{Dolphin: deploy agilely like dolphins can swim. A multi-threaded multi-stage deployment tool utilizes the full power of Git and Ruby.
|
16
|
+
Bye bye, serial iteration over list of servers;
|
17
|
+
Welcome, multi-threaded deployment using Parallel gem.
|
18
|
+
Bye bye, afterthought of the multistage extension;
|
19
|
+
Welcome, multi-stage deployment built in from inception.
|
20
|
+
Bye bye, SVN style checkout directories on servers;
|
21
|
+
Welcome, git repository on servers.
|
22
|
+
Bye bye, Capistrano style symlink tricks for current / rollback;
|
23
|
+
Welcome, git checkout.
|
24
|
+
Bye bye, Rake tasks;
|
25
|
+
Welcome, Thor actions.
|
26
|
+
Bye bye, complexity;
|
27
|
+
Welcome, nimbleness.
|
28
|
+
}
|
29
|
+
|
16
30
|
spec.files = `git ls-files`.split($/)
|
17
31
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
32
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
@@ -21,6 +35,8 @@ Gem::Specification.new do |spec|
|
|
21
35
|
spec.add_dependency "thor"
|
22
36
|
spec.add_dependency "net-ssh"
|
23
37
|
spec.add_dependency "parallel"
|
38
|
+
|
24
39
|
spec.add_development_dependency "bundler", "~> 1.3"
|
25
40
|
spec.add_development_dependency "rake"
|
41
|
+
|
26
42
|
end
|
data/lib/dolphin/puma.rb
CHANGED
@@ -6,7 +6,8 @@ class Dolphin::Puma < Dolphin::Base
|
|
6
6
|
menu = [
|
7
7
|
"
|
8
8
|
cd #{@deploy_dir}
|
9
|
-
RAILS_ENV=#{@env} bundle exec puma -t 8:32 -e #{@env} -d -b unix://#{@sockets}/#{@application}.sock -S #{@pids}/#{@application}.state --control unix://#{@sockets}/pumactl.sock
|
9
|
+
RAILS_ENV=#{@env} bundle exec puma -t 8:32 -e #{@env} -d -b unix://#{@sockets}/#{@application}.sock -S #{@pids}/#{@application}.state --control unix://#{@sockets}/pumactl.sock
|
10
|
+
# --pidfile #{@pids}/#{@application}.pid
|
10
11
|
",
|
11
12
|
]
|
12
13
|
|
@@ -30,8 +31,8 @@ class Dolphin::Puma < Dolphin::Base
|
|
30
31
|
menu = [
|
31
32
|
"
|
32
33
|
cd #{@deploy_dir}
|
33
|
-
|
34
|
-
kill -s SIGUSR2 `cat #{@pids}/#{@application}.pid`
|
34
|
+
RAILS_ENV=#{@env} bundle exec pumactl -S #{@pids}/#{@application}.state restart
|
35
|
+
# kill -s SIGUSR2 `cat #{@pids}/#{@application}.pid`
|
35
36
|
",
|
36
37
|
]
|
37
38
|
|
data/lib/dolphin/version.rb
CHANGED
data/spec/spec_helper.rb
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dolphin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neng Xu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -80,7 +80,8 @@ dependencies:
|
|
80
80
|
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description: 'Dolphin: deploy
|
83
|
+
description: 'Dolphin: deploy agilely like dolphins can swim. A multi-threaded multi-stage
|
84
|
+
deployment tool utilizes the full power of Git and Ruby.'
|
84
85
|
email:
|
85
86
|
- neng2.xu2@gmail.com
|
86
87
|
executables: []
|
@@ -104,6 +105,15 @@ files:
|
|
104
105
|
- lib/dolphin/version.rb
|
105
106
|
- lib/generators/dolphin/install_generator.rb
|
106
107
|
- lib/generators/dolphin/templates/dolphin
|
108
|
+
- spec/dolphin/base_spec.rb
|
109
|
+
- spec/dolphin/deploy_spec.rb
|
110
|
+
- spec/dolphin/git_spec.rb
|
111
|
+
- spec/dolphin/lock_spec.rb
|
112
|
+
- spec/dolphin/nginx_spec.rb
|
113
|
+
- spec/dolphin/puma_spec.rb
|
114
|
+
- spec/dolphin/setup_spec.rb
|
115
|
+
- spec/dolphin/version_spec.rb
|
116
|
+
- spec/spec_helper.rb
|
107
117
|
homepage: https://github.com/nengxu/dolphin
|
108
118
|
licenses:
|
109
119
|
- MIT
|
@@ -127,5 +137,21 @@ rubyforge_project:
|
|
127
137
|
rubygems_version: 2.0.2
|
128
138
|
signing_key:
|
129
139
|
specification_version: 4
|
130
|
-
summary: 'Dolphin: deploy
|
131
|
-
|
140
|
+
summary: 'Dolphin: deploy agilely like dolphins can swim. A multi-threaded multi-stage
|
141
|
+
deployment tool utilizes the full power of Git and Ruby. Bye bye, serial iteration
|
142
|
+
over list of servers; Welcome, multi-threaded deployment using Parallel gem. Bye
|
143
|
+
bye, afterthought of the multistage extension; Welcome, multi-stage deployment built
|
144
|
+
in from inception. Bye bye, SVN style checkout directories on servers; Welcome,
|
145
|
+
git repository on servers. Bye bye, Capistrano style symlink tricks for current
|
146
|
+
/ rollback; Welcome, git checkout. Bye bye, Rake tasks; Welcome, Thor actions. Bye
|
147
|
+
bye, complexity; Welcome, nimbleness.'
|
148
|
+
test_files:
|
149
|
+
- spec/dolphin/base_spec.rb
|
150
|
+
- spec/dolphin/deploy_spec.rb
|
151
|
+
- spec/dolphin/git_spec.rb
|
152
|
+
- spec/dolphin/lock_spec.rb
|
153
|
+
- spec/dolphin/nginx_spec.rb
|
154
|
+
- spec/dolphin/puma_spec.rb
|
155
|
+
- spec/dolphin/setup_spec.rb
|
156
|
+
- spec/dolphin/version_spec.rb
|
157
|
+
- spec/spec_helper.rb
|