rails_pwnerer 0.6.69 → 0.6.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +2 -0
- data/lib/rails_pwnerer/base/cpus.rb +2 -2
- data/lib/rails_pwnerer/scaffolds/gems.rb +16 -31
- data/lib/rails_pwnerer/scaffolds/packages.rb +0 -4
- data/rails_pwnerer.gemspec +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -52,8 +52,8 @@ module RailsPwnerer::Base
|
|
52
52
|
cpus << {
|
53
53
|
:freq => p.cpu_mhz.to_f,
|
54
54
|
:id => p.processor.to_i,
|
55
|
-
:cpu => p.physical_id.to_i,
|
56
|
-
:core => p.core_id.to_i,
|
55
|
+
:cpu => p.respond_to?(:physical_id) ? p.physical_id.to_i : 0,
|
56
|
+
:core => p.respond_to?(:core_id) ? p.core_id.to_i : 0,
|
57
57
|
:num_cores => p.cpu_cores.to_i
|
58
58
|
}
|
59
59
|
end
|
@@ -4,59 +4,44 @@ class RailsPwnerer::Scaffolds::Gems
|
|
4
4
|
include RailsPwnerer::Base
|
5
5
|
|
6
6
|
def install_self
|
7
|
-
#
|
7
|
+
# The gem repository gets wiped on new Debian and Ubuntu installs, so we
|
8
|
+
# need to reinstall ourselves.
|
8
9
|
install_gems %w(rails_pwnerer)
|
9
10
|
end
|
10
11
|
|
11
|
-
def
|
12
|
-
install_gems %w(memcache-client rack rack-test rack-mount unicorn thin)
|
13
|
-
end
|
14
|
-
|
15
|
-
def install_dbi
|
12
|
+
def install_databases
|
16
13
|
install_gems %w(mysql mysql2 pg sqlite3-ruby)
|
17
|
-
|
18
|
-
|
19
|
-
def install_text_tools
|
20
|
-
install_gems %w(tzinfo builder erubis mail text-format i18n)
|
14
|
+
install_gems %w(memcache-client)
|
21
15
|
end
|
22
16
|
|
23
17
|
def install_packagers
|
24
18
|
install_gems %w(rake thor bundler)
|
25
19
|
end
|
26
20
|
|
27
|
-
def
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
# used to get version control passwords
|
21
|
+
def install_servers
|
22
|
+
install_gems %w(thin unicorn)
|
23
|
+
end
|
24
|
+
|
25
|
+
def install_tools
|
26
|
+
# Get passwords from admins.
|
35
27
|
install_gems %w(highline termios)
|
36
28
|
|
37
|
-
#
|
38
|
-
install_gems %w(
|
39
|
-
|
40
|
-
# some code can use one of these for XML / HTML parsing and be faster
|
41
|
-
install_gems %w(nokogiri hpricot)
|
29
|
+
# Debug gems on production machines.
|
30
|
+
install_gems %w(echoe jeweler ruby-debug ruby-debug-ide)
|
42
31
|
|
43
|
-
#
|
44
|
-
install_gems %w(
|
45
|
-
|
46
|
-
# useful for development, testing, monitoring
|
47
|
-
install_gems %w(mechanize)
|
32
|
+
# Determine number of CPUs and cores.
|
33
|
+
install_gems %w(sys-cpu)
|
48
34
|
end
|
49
35
|
|
50
36
|
# runner
|
51
37
|
def run
|
52
38
|
update_gems
|
53
39
|
install_self
|
54
|
-
|
40
|
+
install_databases
|
55
41
|
install_packagers
|
56
|
-
install_text_tools
|
57
42
|
install_servers
|
58
|
-
install_gems %w(rails)
|
59
43
|
install_tools
|
44
|
+
install_gems %w(rails)
|
60
45
|
end
|
61
46
|
|
62
47
|
# standalone runner
|
@@ -94,10 +94,6 @@ class RailsPwnerer::Scaffolds::Packages
|
|
94
94
|
package 'irb', 'irb1.8'
|
95
95
|
package 'ruby-dev', 'ruby1.8-dev'
|
96
96
|
package 'rubygems', 'rubygems1.8'
|
97
|
-
|
98
|
-
# Debian package tool. Might be helpful if we decide to auto-convert
|
99
|
-
# gems into debian packages.
|
100
|
-
package 'ruby-pkg-tools'
|
101
97
|
end
|
102
98
|
|
103
99
|
# Package for front-end servers.
|
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: 139
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 70
|
10
|
+
version: 0.6.70
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Victor Costan
|