standup 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Standup
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
 
4
4
  def self.version
5
5
  VERSION
@@ -9,7 +9,7 @@ events {
9
9
 
10
10
  http {
11
11
  passenger_root <%= scripts.ruby.info[:gem_dir] %>/passenger-3.0.7;
12
- passenger_ruby <%= scripts.ruby.info[:bin_ruby] %>;
12
+ passenger_ruby <%= scripts.ruby.info[:wrapper] %>;
13
13
 
14
14
  include mime.types;
15
15
  default_type application/octet-stream;
data/scripts/passenger.rb CHANGED
@@ -1,14 +1,14 @@
1
1
  Standup.script :node do
2
2
  def run
3
3
  scripts.ec2.open_port 80, 443
4
-
4
+
5
5
  if install_gem('passenger', '3.0.7') || !file_exists?('/opt/nginx/sbin/nginx')
6
6
  install_package 'libcurl4-openssl-dev'
7
7
  sudo 'passenger-install-nginx-module --auto --auto-download --prefix=/opt/nginx'
8
8
  end
9
-
9
+
10
10
  sudo 'mkdir -p /opt/nginx/conf/servers'
11
-
11
+
12
12
  with_processed_file script_file('nginx.conf') do |file|
13
13
  upload file,
14
14
  :to =>'/opt/nginx/conf/nginx.conf',
@@ -18,12 +18,12 @@ Standup.script :node do
18
18
  upload script_file('nginx'),
19
19
  :to =>'/etc/init.d/nginx',
20
20
  :sudo => true
21
-
21
+
22
22
  sudo 'chmod +x /etc/init.d/nginx'
23
23
  sudo '/usr/sbin/update-rc.d -f nginx defaults'
24
-
24
+
25
25
  scripts.monit.add_watch script_file('nginx_monit.conf')
26
-
26
+
27
27
  restart_nginx
28
28
  end
29
29
 
@@ -31,7 +31,7 @@ Standup.script :node do
31
31
  upload file,
32
32
  :to => "/opt/nginx/conf/servers/#{name}",
33
33
  :sudo => true
34
-
34
+
35
35
  restart_nginx if restart
36
36
  end
37
37
 
data/scripts/redis.rb CHANGED
@@ -36,4 +36,8 @@ Standup.script :node do
36
36
  def installed?
37
37
  sudo('find /usr/local/bin/redis-server').match(/No such file or directory/).blank?
38
38
  end
39
+
40
+ def restart
41
+ scripts.monit.restart_watch 'redis'
42
+ end
39
43
  end
@@ -0,0 +1,2 @@
1
+ install: --no-rdoc --no-ri
2
+ update: --no-rdoc --no-ri
data/scripts/ruby.rb CHANGED
@@ -12,7 +12,11 @@ Standup.script :node do
12
12
  install_packages 'build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev'
13
13
 
14
14
  sudo "rvm install #{version}"
15
- exec "rvm use #{version} --default"
15
+ sudo "rvm use #{version} --default"
16
+
17
+ upload script_file('gemrc'),
18
+ :to => '/etc/gemrc',
19
+ :sudo => true
16
20
  end
17
21
  end
18
22
 
@@ -20,7 +24,8 @@ Standup.script :node do
20
24
  @rvminfo ||= YAML.load(exec('rvm info')).values.first
21
25
  {
22
26
  :gem_dir => "#{@rvminfo['homes']['gem']}/gems",
23
- :bin_ruby => @rvminfo['binaries']['ruby']
27
+ :bin_ruby => @rvminfo['binaries']['ruby'],
28
+ :wrapper => "#{@rvminfo['homes']['ruby'].gsub('/rubies/', '/wrappers/')}/ruby"
24
29
  }
25
30
  end
26
31
 
data/scripts/webapp.rb CHANGED
@@ -39,6 +39,7 @@ Standup.script :node do
39
39
 
40
40
  bootstrap_db if params.bootstrap_db
41
41
 
42
+ #TODO replace rvm ruby with wrapper!!!
42
43
  with_processed_file script_file('webapp.conf') do |file|
43
44
  scripts.passenger.add_server_conf file, "#{params.name}.conf"
44
45
  end
metadata CHANGED
@@ -1,116 +1,158 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: standup
3
- version: !ruby/object:Gem::Version
4
- version: 0.5.4
3
+ version: !ruby/object:Gem::Version
4
+ hash: 1
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 5
9
+ - 5
10
+ version: 0.5.5
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Ilia Ablamonov
9
14
  - Artem Orlov
10
15
  - Cloud Castle Inc.
11
16
  autorequire:
12
17
  bindir: bin
13
18
  cert_chain: []
14
- date: 2011-07-06 00:00:00.000000000 +04:00
19
+
20
+ date: 2011-07-12 00:00:00 +04:00
15
21
  default_executable:
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
18
24
  name: trollop
19
- requirement: &2153220240 !ruby/object:Gem::Requirement
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
20
27
  none: false
21
- requirements:
22
- - - ! '>='
23
- - !ruby/object:Gem::Version
24
- version: '1.16'
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ hash: 47
32
+ segments:
33
+ - 1
34
+ - 16
35
+ version: "1.16"
25
36
  type: :runtime
26
- prerelease: false
27
- version_requirements: *2153220240
28
- - !ruby/object:Gem::Dependency
37
+ version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
29
39
  name: i18n
30
- requirement: &2153219740 !ruby/object:Gem::Requirement
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
31
42
  none: false
32
- requirements:
33
- - - ! '>='
34
- - !ruby/object:Gem::Version
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ hash: 11
47
+ segments:
48
+ - 0
49
+ - 5
50
+ - 0
35
51
  version: 0.5.0
36
52
  type: :runtime
37
- prerelease: false
38
- version_requirements: *2153219740
39
- - !ruby/object:Gem::Dependency
53
+ version_requirements: *id002
54
+ - !ruby/object:Gem::Dependency
40
55
  name: activesupport
41
- requirement: &2153219220 !ruby/object:Gem::Requirement
56
+ prerelease: false
57
+ requirement: &id003 !ruby/object:Gem::Requirement
42
58
  none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '3.0'
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ hash: 7
63
+ segments:
64
+ - 3
65
+ - 0
66
+ version: "3.0"
47
67
  type: :runtime
48
- prerelease: false
49
- version_requirements: *2153219220
50
- - !ruby/object:Gem::Dependency
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
51
70
  name: settingslogic
52
- requirement: &2153218740 !ruby/object:Gem::Requirement
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
53
73
  none: false
54
- requirements:
55
- - - ! '>='
56
- - !ruby/object:Gem::Version
57
- version: '2.0'
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ hash: 3
78
+ segments:
79
+ - 2
80
+ - 0
81
+ version: "2.0"
58
82
  type: :runtime
59
- prerelease: false
60
- version_requirements: *2153218740
61
- - !ruby/object:Gem::Dependency
83
+ version_requirements: *id004
84
+ - !ruby/object:Gem::Dependency
62
85
  name: amazon-ec2
63
- requirement: &2153218260 !ruby/object:Gem::Requirement
86
+ prerelease: false
87
+ requirement: &id005 !ruby/object:Gem::Requirement
64
88
  none: false
65
- requirements:
66
- - - ! '>='
67
- - !ruby/object:Gem::Version
68
- version: '0.9'
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ hash: 25
93
+ segments:
94
+ - 0
95
+ - 9
96
+ version: "0.9"
69
97
  type: :runtime
70
- prerelease: false
71
- version_requirements: *2153218260
72
- - !ruby/object:Gem::Dependency
98
+ version_requirements: *id005
99
+ - !ruby/object:Gem::Dependency
73
100
  name: aws-s3
74
- requirement: &2153217800 !ruby/object:Gem::Requirement
101
+ prerelease: false
102
+ requirement: &id006 !ruby/object:Gem::Requirement
75
103
  none: false
76
- requirements:
77
- - - ! '>='
78
- - !ruby/object:Gem::Version
79
- version: '0.5'
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ hash: 1
108
+ segments:
109
+ - 0
110
+ - 5
111
+ version: "0.5"
80
112
  type: :runtime
81
- prerelease: false
82
- version_requirements: *2153217800
83
- - !ruby/object:Gem::Dependency
113
+ version_requirements: *id006
114
+ - !ruby/object:Gem::Dependency
84
115
  name: net-ssh
85
- requirement: &2153217340 !ruby/object:Gem::Requirement
116
+ prerelease: false
117
+ requirement: &id007 !ruby/object:Gem::Requirement
86
118
  none: false
87
- requirements:
88
- - - ! '>='
89
- - !ruby/object:Gem::Version
90
- version: '2.0'
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ hash: 3
123
+ segments:
124
+ - 2
125
+ - 0
126
+ version: "2.0"
91
127
  type: :runtime
92
- prerelease: false
93
- version_requirements: *2153217340
94
- - !ruby/object:Gem::Dependency
128
+ version_requirements: *id007
129
+ - !ruby/object:Gem::Dependency
95
130
  name: highline
96
- requirement: &2153216880 !ruby/object:Gem::Requirement
131
+ prerelease: false
132
+ requirement: &id008 !ruby/object:Gem::Requirement
97
133
  none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ hash: 7
138
+ segments:
139
+ - 1
140
+ - 5
141
+ - 2
101
142
  version: 1.5.2
102
143
  type: :runtime
103
- prerelease: false
104
- version_requirements: *2153216880
105
- description: ''
106
- email:
144
+ version_requirements: *id008
145
+ description: ""
146
+ email:
107
147
  - ilia@flamefork.ru
108
148
  - art.orlov@gmail.com
109
- executables:
149
+ executables:
110
150
  - standup
111
151
  extensions: []
152
+
112
153
  extra_rdoc_files: []
113
- files:
154
+
155
+ files:
114
156
  - .gitignore
115
157
  - .rvmrc
116
158
  - Gemfile
@@ -170,6 +212,7 @@ files:
170
212
  - scripts/resque/resque
171
213
  - scripts/resque/resque_monit.conf
172
214
  - scripts/ruby.rb
215
+ - scripts/ruby/gemrc
173
216
  - scripts/setup.rb
174
217
  - scripts/shell.rb
175
218
  - scripts/status.rb
@@ -183,27 +226,36 @@ files:
183
226
  has_rdoc: true
184
227
  homepage: https://github.com/cloudcastle/standup
185
228
  licenses: []
229
+
186
230
  post_install_message:
187
231
  rdoc_options: []
188
- require_paths:
232
+
233
+ require_paths:
189
234
  - lib
190
- required_ruby_version: !ruby/object:Gem::Requirement
235
+ required_ruby_version: !ruby/object:Gem::Requirement
191
236
  none: false
192
- requirements:
193
- - - ! '>='
194
- - !ruby/object:Gem::Version
195
- version: '0'
196
- required_rubygems_version: !ruby/object:Gem::Requirement
237
+ requirements:
238
+ - - ">="
239
+ - !ruby/object:Gem::Version
240
+ hash: 3
241
+ segments:
242
+ - 0
243
+ version: "0"
244
+ required_rubygems_version: !ruby/object:Gem::Requirement
197
245
  none: false
198
- requirements:
199
- - - ! '>='
200
- - !ruby/object:Gem::Version
201
- version: '0'
246
+ requirements:
247
+ - - ">="
248
+ - !ruby/object:Gem::Version
249
+ hash: 3
250
+ segments:
251
+ - 0
252
+ version: "0"
202
253
  requirements: []
254
+
203
255
  rubyforge_project: standup
204
256
  rubygems_version: 1.6.2
205
257
  signing_key:
206
258
  specification_version: 3
207
- summary: Standup is an application deployment and infrastructure management tool for
208
- Rails and Amazon EC2
259
+ summary: Standup is an application deployment and infrastructure management tool for Rails and Amazon EC2
209
260
  test_files: []
261
+