dolphin 0.0.7 → 0.0.8

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: 7ae212bf6ffc646c027922fcf0e2a2a08c09f4bf
4
- data.tar.gz: 6e22cdeacbde4a142c437ddf1c70660653d44539
3
+ metadata.gz: a361a8243bcdd3eccb35ec05742b9c9c1e1c865d
4
+ data.tar.gz: f5a7d3e94ae506e26f3ca5c41edd80f1d9efbd5f
5
5
  SHA512:
6
- metadata.gz: 05039c7d3921e3425fc4908c145512b20103d566213dad815eddf1cde39db4e2487f22f7a19157baa57ac82f95cb3f4a82e6e2c0eb7ecf734f3ce588d4461e9a
7
- data.tar.gz: 620b15003c9b38b1b334fecf1b151787f7d6abf06eb3cbbe9e711f6e6e83ae0aa601ef62691868847c3b66278cc3847be339f79ac55dd33df6bbbee542d78e99
6
+ metadata.gz: dd08ab40bfa3c8989e8ecf3f75dcdc7c5a900514dac2bbb7fcb8fd9bea38990ae7c712d34d42fc603d229e34d1da822276f78e5d6161f32cf0f9be3a1c4c02eb
7
+ data.tar.gz: e1e6d694f89eab45da4d6d1c683e413d8346b9cc37b058ea097364a87532cb1a5876eb20344b38cc556140413230bebc94a0278fefe5023e839856a0ba96defe
data/README.md CHANGED
@@ -115,6 +115,10 @@ Switch to a specific tag / branch / commit in alpha environment:
115
115
 
116
116
  Please note that the default environment is alpha for developers. So there is no need to append "-e alpha" in the above example.
117
117
 
118
+ If you want to run a task locally on your own box, just set up a :local environment and put 'localhost' into @servers, like in the generated bin/dolphin. Then you can run the task like:
119
+
120
+ $ bin/dolphin setup chruby -e local
121
+
118
122
  ### Output
119
123
 
120
124
  The outputs from servers are captured and shown on your console as in the following sections.
data/lib/dolphin/setup.rb CHANGED
@@ -7,9 +7,30 @@ class Dolphin::Setup < Dolphin::Base
7
7
  "
8
8
  # git clone
9
9
  if [ ! -d 'chruby' ]; then git clone https://github.com/postmodern/chruby.git ; fi
10
- # checkout tag
11
10
  cd chruby
12
- git checkout v0.3.5
11
+ # update
12
+ git fetch
13
+ # checkout tag
14
+ git checkout v0.3.6
15
+ # install
16
+ sudo make install
17
+ ",
18
+ ]
19
+
20
+ execute menu
21
+ end
22
+
23
+ desc "ruby_install", "update ruby_install"
24
+ def ruby_install(version='master')
25
+ menu = [
26
+ "
27
+ # git clone
28
+ if [ ! -d 'ruby-install' ]; then git clone https://github.com/postmodern/ruby-install.git ; fi
29
+ cd ruby-install
30
+ # update
31
+ git fetch
32
+ # checkout tag
33
+ git checkout #{version}
13
34
  # install
14
35
  sudo make install
15
36
  ",
@@ -37,17 +58,11 @@ class Dolphin::Setup < Dolphin::Base
37
58
  end
38
59
 
39
60
  desc "ruby", "install ruby, arg: version"
40
- def ruby(version="2.0.0-p195")
61
+ def ruby(version="2.0.0-p247")
41
62
  menu = [
42
- "
43
- # update ruby-build
44
- cd ruby-build
45
- git pull
46
- sudo ./install.sh
47
- ",
48
63
  "
49
64
  # install ruby
50
- sudo ruby-build #{version} /opt/rubies/ruby-#{version}
65
+ sudo ruby-install ruby #{version}
51
66
  ",
52
67
  ]
53
68
 
@@ -55,7 +70,7 @@ class Dolphin::Setup < Dolphin::Base
55
70
  end
56
71
 
57
72
  desc "select", "select ruby, arg: version"
58
- def select(version="2.0.0-p195")
73
+ def select(version="2.0.0-p247")
59
74
  menu = [
60
75
  "
61
76
  # select ruby
@@ -72,6 +87,7 @@ class Dolphin::Setup < Dolphin::Base
72
87
  menu = [
73
88
  "
74
89
  # install bundler
90
+ cd #{@app_dir}
75
91
  sudo gem install bundler
76
92
  ",
77
93
  ]
@@ -1,3 +1,3 @@
1
1
  module Dolphin
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -50,6 +50,10 @@ class Dolphin::Base
50
50
  @env = @branch =options[:env]
51
51
 
52
52
  case @env
53
+ when 'local'
54
+ @servers = [
55
+ 'localhost',
56
+ ]
53
57
  when 'qa'
54
58
  @servers = [
55
59
  'qa01.best_app.com',
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.7
4
+ version: 0.0.8
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-21 00:00:00.000000000 Z
11
+ date: 2013-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.0.2
137
+ rubygems_version: 2.0.3
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: 'Dolphin: deploy agilely like dolphins can swim. A multi-threaded multi-stage