rails_pwnerer 0.6.68 → 0.6.69
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 +21 -9
- data/rails_pwnerer.gemspec +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -9,6 +9,13 @@ class RailsPwnerer::Scaffolds::Packages
|
|
9
9
|
package 'debconf'
|
10
10
|
package 'debconf-utils'
|
11
11
|
|
12
|
+
# Keys for Debian packages.
|
13
|
+
package 'debian-archive-keyring'
|
14
|
+
|
15
|
+
# Fetch files via HTTP.
|
16
|
+
package 'curl'
|
17
|
+
package 'wget'
|
18
|
+
|
12
19
|
package 'dpkg-dev' # Builds packages from source.
|
13
20
|
package 'openssh-server' # SSH into the box.
|
14
21
|
|
@@ -64,6 +71,16 @@ class RailsPwnerer::Scaffolds::Packages
|
|
64
71
|
|
65
72
|
# The ruby environment (ruby, irb, rubygems).
|
66
73
|
def install_ruby
|
74
|
+
package = best_package_matching(['ruby1.8', 'ruby'])
|
75
|
+
if !package or package[:version] < '1.8.7'
|
76
|
+
# This distribution has an old ruby. Work around it.
|
77
|
+
deb_source = 'http://debian.mirrors.tds.net/debian/'
|
78
|
+
deb_repos = %w(testing main non-free contrib)
|
79
|
+
with_package_source deb_source, deb_repos do
|
80
|
+
install_ruby
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
67
84
|
package 'ruby', 'ruby1.8'
|
68
85
|
|
69
86
|
# Extensions that don't come in the ruby package, but should.
|
@@ -97,18 +114,13 @@ class RailsPwnerer::Scaffolds::Packages
|
|
97
114
|
|
98
115
|
# Runner.
|
99
116
|
def run
|
100
|
-
sid_source = 'http://debian.mirrors.tds.net/debian/'
|
101
|
-
sid_repos = %w(unstable main non-free contrib)
|
102
|
-
|
103
117
|
update_package_metadata
|
104
118
|
update_all_packages
|
105
119
|
install_management
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
install_frontends
|
111
|
-
end
|
120
|
+
install_tools
|
121
|
+
install_databases
|
122
|
+
install_frontends
|
123
|
+
install_ruby
|
112
124
|
end
|
113
125
|
|
114
126
|
# Standalone runner.
|
data/rails_pwnerer.gemspec
CHANGED
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: 141
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 69
|
10
|
+
version: 0.6.69
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Victor Costan
|