rails_pwnerer 0.6.100 → 0.6.101
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/lib/rails_pwnerer/scaffolds/packages.rb +32 -19
- data/rails_pwnerer.gemspec +17 -17
- metadata +4 -4
data/CHANGELOG
CHANGED
@@ -51,6 +51,7 @@ class RailsPwnerer::Scaffolds::Packages
|
|
51
51
|
package 'openjdk-6-jdk'
|
52
52
|
|
53
53
|
# useful to be able to work with compressed data
|
54
|
+
package 'zlib-dev', /^zlib[0-9a-z]*-dev$/
|
54
55
|
package 'bzip2'
|
55
56
|
package 'gzip'
|
56
57
|
package 'tar'
|
@@ -74,36 +75,49 @@ class RailsPwnerer::Scaffolds::Packages
|
|
74
75
|
|
75
76
|
# The ruby environment (ruby, irb, rubygems).
|
76
77
|
def install_ruby
|
77
|
-
|
78
|
+
install_ruby_19 || install_ruby_18
|
79
|
+
end
|
80
|
+
|
81
|
+
# MRI19 (1.9.2 or above).
|
82
|
+
def install_ruby_19(retry_with_repos = true)
|
83
|
+
package = best_package_matching(['ruby1.9.1'])
|
84
|
+
if !package or package[:version] < '1.9.2'
|
85
|
+
return false unless retry_with_repos
|
86
|
+
|
87
|
+
# This distribution has an old ruby. Work around it.
|
88
|
+
deb_source = 'http://debian.mirrors.tds.net/debian/'
|
89
|
+
deb_repos = %w(testing main non-free contrib)
|
90
|
+
return_value = nil
|
91
|
+
with_package_source deb_source, deb_repos do
|
92
|
+
return_value = install_ruby_19 false
|
93
|
+
end
|
94
|
+
return return_value
|
95
|
+
end
|
96
|
+
|
97
|
+
package 'ruby1.9.1-full'
|
98
|
+
true
|
99
|
+
end
|
100
|
+
|
101
|
+
# MRI18 (1.8.7 or above).
|
102
|
+
def install_ruby_18
|
103
|
+
package = best_package_matching(['ruby1.8-full'])
|
78
104
|
if !package or package[:version] < '1.8.7'
|
79
105
|
# This distribution has an old ruby. Work around it.
|
80
106
|
deb_source = 'http://debian.mirrors.tds.net/debian/'
|
81
107
|
deb_repos = %w(testing main non-free contrib)
|
108
|
+
return_value = nil
|
82
109
|
with_package_source deb_source, deb_repos do
|
83
|
-
install_ruby
|
110
|
+
return_value = install_ruby
|
84
111
|
end
|
112
|
+
return return_value
|
85
113
|
end
|
86
|
-
|
87
|
-
package 'ruby', 'ruby1.8'
|
88
114
|
|
89
|
-
|
90
|
-
package 'libssl-dev', /^libssl[0-9.]*-dev$/
|
91
|
-
package 'libreadline-dev', /^libreadline\d*-dev$/
|
92
|
-
package 'zlib-dev', /^zlib[0-9a-z]*-dev$/
|
93
|
-
|
94
|
-
# Extensions that don't come in the ruby package, but should.
|
95
|
-
package 'libdbm-ruby', 'libdbm-ruby1.8'
|
96
|
-
package 'libgdm-ruby', 'libgdbm-ruby1.8'
|
97
|
-
package 'libopenssl-ruby', 'libopenssl-ruby1.8'
|
98
|
-
package 'libreadline-ruby', 'libreadline-ruby1.8'
|
99
|
-
package 'libsetup-ruby', 'libsetup-ruby1.8'
|
115
|
+
package 'ruby1.8-full', 'ruby-full'
|
100
116
|
|
101
117
|
# Ecosystem command-line tools.
|
102
|
-
package 'irb', 'irb1.8'
|
103
|
-
package 'ruby-dev', 'ruby1.8-dev'
|
104
118
|
package 'rubygems', 'rubygems1.8'
|
105
119
|
end
|
106
|
-
|
120
|
+
|
107
121
|
# Package for front-end servers.
|
108
122
|
def install_frontends
|
109
123
|
package 'nginx'
|
@@ -115,7 +129,6 @@ class RailsPwnerer::Scaffolds::Packages
|
|
115
129
|
install_package_matching patterns
|
116
130
|
end
|
117
131
|
|
118
|
-
|
119
132
|
# Runner.
|
120
133
|
def run
|
121
134
|
update_package_metadata
|
data/rails_pwnerer.gemspec
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
|
-
s.name =
|
5
|
-
s.version = "0.6.
|
4
|
+
s.name = %q{rails_pwnerer}
|
5
|
+
s.version = "0.6.101"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = [
|
9
|
-
s.date =
|
10
|
-
s.description =
|
11
|
-
s.email =
|
12
|
-
s.executables = [
|
13
|
-
s.extensions = [
|
14
|
-
s.extra_rdoc_files = [
|
15
|
-
s.files = [
|
16
|
-
s.homepage =
|
17
|
-
s.rdoc_options = [
|
18
|
-
s.require_paths = [
|
19
|
-
s.rubyforge_project =
|
20
|
-
s.rubygems_version =
|
21
|
-
s.summary =
|
22
|
-
s.test_files = [
|
8
|
+
s.authors = [%q{Victor Costan}]
|
9
|
+
s.date = %q{2011-09-08}
|
10
|
+
s.description = %q{Rails deployment hack.}
|
11
|
+
s.email = %q{victor@costan.us}
|
12
|
+
s.executables = [%q{rpwn}, %q{rpwnctl}, %q{rpwndev}]
|
13
|
+
s.extensions = [%q{ext/rpwn_setup_notice/extconf.rb}]
|
14
|
+
s.extra_rdoc_files = [%q{CHANGELOG}, %q{LICENSE}, %q{README}, %q{bin/rpwn}, %q{bin/rpwnctl}, %q{bin/rpwndev}, %q{ext/rpwn_setup_notice/extconf.rb}, %q{lib/rails_pwnerer.rb}, %q{lib/rails_pwnerer/app/assets.rb}, %q{lib/rails_pwnerer/app/cluster_config.rb}, %q{lib/rails_pwnerer/app/config.rb}, %q{lib/rails_pwnerer/app/db/mysql.rb}, %q{lib/rails_pwnerer/app/files.rb}, %q{lib/rails_pwnerer/app/gems.rb}, %q{lib/rails_pwnerer/app/main.rb}, %q{lib/rails_pwnerer/app/nginx_config.rb}, %q{lib/rails_pwnerer/app/scripts.rb}, %q{lib/rails_pwnerer/app/vcs/git.rb}, %q{lib/rails_pwnerer/app/vcs/perforce.rb}, %q{lib/rails_pwnerer/app/vcs/svn.rb}, %q{lib/rails_pwnerer/base.rb}, %q{lib/rails_pwnerer/base/atomics.rb}, %q{lib/rails_pwnerer/base/cpus.rb}, %q{lib/rails_pwnerer/base/dirs.rb}, %q{lib/rails_pwnerer/base/gems.rb}, %q{lib/rails_pwnerer/base/hostname.rb}, %q{lib/rails_pwnerer/base/input.rb}, %q{lib/rails_pwnerer/base/packages.rb}, %q{lib/rails_pwnerer/base/process.rb}, %q{lib/rails_pwnerer/base/rails.rb}, %q{lib/rails_pwnerer/base/startup.rb}, %q{lib/rails_pwnerer/config/app.rb}, %q{lib/rails_pwnerer/config/frontends.rb}, %q{lib/rails_pwnerer/config/main.rb}, %q{lib/rails_pwnerer/config/paths.rb}, %q{lib/rails_pwnerer/config/ports.rb}, %q{lib/rails_pwnerer/config/repository.rb}, %q{lib/rails_pwnerer/ctl_executor.rb}, %q{lib/rails_pwnerer/dev_executor.rb}, %q{lib/rails_pwnerer/executor.rb}, %q{lib/rails_pwnerer/scaffolds/config.rb}, %q{lib/rails_pwnerer/scaffolds/dir_permissions.rb}, %q{lib/rails_pwnerer/scaffolds/dirs.rb}, %q{lib/rails_pwnerer/scaffolds/gems.rb}, %q{lib/rails_pwnerer/scaffolds/hook_daemon.rb}, %q{lib/rails_pwnerer/scaffolds/hook_dyndns.rb}, %q{lib/rails_pwnerer/scaffolds/mysql_config.rb}, %q{lib/rails_pwnerer/scaffolds/packages.rb}, %q{lib/rails_pwnerer/scaffolds/rubygems.rb}, %q{lib/rails_pwnerer/scaffolds/sshd.rb}, %q{lib/rails_pwnerer/util/kill_process_set.rb}, %q{lib/rails_pwnerer/util/main.rb}]
|
15
|
+
s.files = [%q{CHANGELOG}, %q{LICENSE}, %q{Manifest}, %q{README}, %q{RUBYFORGE}, %q{Rakefile}, %q{bin/rpwn}, %q{bin/rpwnctl}, %q{bin/rpwndev}, %q{ext/rpwn_setup_notice/extconf.rb}, %q{lib/rails_pwnerer.rb}, %q{lib/rails_pwnerer/app/assets.rb}, %q{lib/rails_pwnerer/app/cluster_config.rb}, %q{lib/rails_pwnerer/app/config.rb}, %q{lib/rails_pwnerer/app/db/mysql.rb}, %q{lib/rails_pwnerer/app/files.rb}, %q{lib/rails_pwnerer/app/gems.rb}, %q{lib/rails_pwnerer/app/main.rb}, %q{lib/rails_pwnerer/app/nginx_config.rb}, %q{lib/rails_pwnerer/app/scripts.rb}, %q{lib/rails_pwnerer/app/vcs/git.rb}, %q{lib/rails_pwnerer/app/vcs/perforce.rb}, %q{lib/rails_pwnerer/app/vcs/svn.rb}, %q{lib/rails_pwnerer/base.rb}, %q{lib/rails_pwnerer/base/atomics.rb}, %q{lib/rails_pwnerer/base/cpus.rb}, %q{lib/rails_pwnerer/base/dirs.rb}, %q{lib/rails_pwnerer/base/gems.rb}, %q{lib/rails_pwnerer/base/hostname.rb}, %q{lib/rails_pwnerer/base/input.rb}, %q{lib/rails_pwnerer/base/packages.rb}, %q{lib/rails_pwnerer/base/process.rb}, %q{lib/rails_pwnerer/base/rails.rb}, %q{lib/rails_pwnerer/base/startup.rb}, %q{lib/rails_pwnerer/config/app.rb}, %q{lib/rails_pwnerer/config/frontends.rb}, %q{lib/rails_pwnerer/config/main.rb}, %q{lib/rails_pwnerer/config/paths.rb}, %q{lib/rails_pwnerer/config/ports.rb}, %q{lib/rails_pwnerer/config/repository.rb}, %q{lib/rails_pwnerer/ctl_executor.rb}, %q{lib/rails_pwnerer/dev_executor.rb}, %q{lib/rails_pwnerer/executor.rb}, %q{lib/rails_pwnerer/scaffolds/config.rb}, %q{lib/rails_pwnerer/scaffolds/dir_permissions.rb}, %q{lib/rails_pwnerer/scaffolds/dirs.rb}, %q{lib/rails_pwnerer/scaffolds/gems.rb}, %q{lib/rails_pwnerer/scaffolds/hook_daemon.rb}, %q{lib/rails_pwnerer/scaffolds/hook_dyndns.rb}, %q{lib/rails_pwnerer/scaffolds/mysql_config.rb}, %q{lib/rails_pwnerer/scaffolds/packages.rb}, %q{lib/rails_pwnerer/scaffolds/rubygems.rb}, %q{lib/rails_pwnerer/scaffolds/sshd.rb}, %q{lib/rails_pwnerer/util/kill_process_set.rb}, %q{lib/rails_pwnerer/util/main.rb}, %q{test/base_package_test.rb}, %q{test/helper.rb}, %q{rails_pwnerer.gemspec}]
|
16
|
+
s.homepage = %q{http://www.costan.us/rails_pwnage}
|
17
|
+
s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Rails_pwnerer}, %q{--main}, %q{README}]
|
18
|
+
s.require_paths = [%q{lib}, %q{ext}]
|
19
|
+
s.rubyforge_project = %q{rails-pwnage}
|
20
|
+
s.rubygems_version = %q{1.8.8}
|
21
|
+
s.summary = %q{Rails deployment hack.}
|
22
|
+
s.test_files = [%q{test/base_package_test.rb}]
|
23
23
|
|
24
24
|
if s.respond_to? :specification_version then
|
25
25
|
s.specification_version = 3
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_pwnerer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 205
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 101
|
10
|
+
version: 0.6.101
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Victor Costan
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
229
|
requirements: []
|
230
230
|
|
231
231
|
rubyforge_project: rails-pwnage
|
232
|
-
rubygems_version: 1.8.
|
232
|
+
rubygems_version: 1.8.8
|
233
233
|
signing_key:
|
234
234
|
specification_version: 3
|
235
235
|
summary: Rails deployment hack.
|