dolphin 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3c7b54501a8a9b956d5f64dc057f056400d4719
4
- data.tar.gz: bba03a660905487e6fa96b7f0dcab409e43dde5b
3
+ metadata.gz: 0368b3d9bab059dd58cfb9461d066c152f455761
4
+ data.tar.gz: e6caa9a6aad53d4fd2f3f1dc90c17560173a926e
5
5
  SHA512:
6
- metadata.gz: d37afe7c4a899c9274c638029eca78b731dcb41fda88b612c9d836a5f3ef0816ca812a4b1932e4067aaaf297b476e7f70d708a1cb739fe6128345e2988022e88
7
- data.tar.gz: d0983df1a404ef3fcf0c35a44379d849e309980e2c27dc08e05c8f8ea41e380a60791c2efd9c5488bdb9667b2a22443790ba713e8c5cb0dc3e34afcef3907272
6
+ metadata.gz: 7bc4d81defbd5df890af8af3bd73a144966e8c60bbaf6b8383f09c546dea0c38ba165c49c3acc0a87a3272c1037a081645349a571656cf0d8455e9eb9a30e060
7
+ data.tar.gz: 51db0ccf7a148455433c178b336bb37fd89b56bbc453f6ff02bacb3944c67e0c9aaf01fdbc82bd44f4d5a41443f02c0ec27a607dd9db3a5eb5c360a412779a5b
data/README.md CHANGED
@@ -1,6 +1,19 @@
1
1
  # Dolphin
2
2
 
3
- TODO: Write a gem description
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
@@ -1 +1,9 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new do |t|
5
+ t.pattern = 'spec/**/*_spec.rb'
6
+ t.libs.push 'spec'
7
+ end
8
+
9
+ task default: :test
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 --pidfile #{@pids}/#{@application}.pid
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
- # RAILS_ENV=#{@env} bundle exec pumactl -S #{@pids}/#{@application}.state restart
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
 
@@ -1,3 +1,3 @@
1
1
  module Dolphin
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe Dolphin::Base do
4
+
5
+ it "must be defined" do
6
+ Dolphin::Base.wont_be_nil
7
+ end
8
+
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe Dolphin::Deploy do
4
+
5
+ it "must be defined" do
6
+ Dolphin::Deploy.wont_be_nil
7
+ end
8
+
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe Dolphin::Git do
4
+
5
+ it "must be defined" do
6
+ Dolphin::Git.wont_be_nil
7
+ end
8
+
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe Dolphin::Lock do
4
+
5
+ it "must be defined" do
6
+ Dolphin::Lock.wont_be_nil
7
+ end
8
+
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe Dolphin::Nginx do
4
+
5
+ it "must be defined" do
6
+ Dolphin::Nginx.wont_be_nil
7
+ end
8
+
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe Dolphin::Puma do
4
+
5
+ it "must be defined" do
6
+ Dolphin::Puma.wont_be_nil
7
+ end
8
+
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe Dolphin::Setup do
4
+
5
+ it "must be defined" do
6
+ Dolphin::Setup.wont_be_nil
7
+ end
8
+
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe Dolphin::VERSION do
4
+
5
+ it "must be defined" do
6
+ Dolphin::VERSION.wont_be_nil
7
+ end
8
+
9
+ end
@@ -0,0 +1,2 @@
1
+ require 'minitest/autorun'
2
+ require 'dolphin'
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.5
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-17 00:00:00.000000000 Z
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 smartly'
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 smartly'
131
- test_files: []
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