rails_pwnerer 0.6.69 → 0.6.70

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.6.70. Bugfix for CPU enumeration in VM.
2
+
1
3
  v0.6.69. More tweaks in the debian package list.
2
4
 
3
5
  v0.6.68. Bugfix in untested package installation code, plus new test.
@@ -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
- # need to reinstall self because ruby gets swapped while the gem is running
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 install_servers
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
- end
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 install_tools
28
- # we need this to do controlled app container startups
29
- install_gems %w(sys-proctable)
30
-
31
- # used to determine the number of available CPUs and cores
32
- install_gems %w(sys-cpu)
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
- # some code can use this instead of Net::HTTP and be faster
38
- install_gems %w(curb)
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
- # useful for building gems and debugging
44
- install_gems %w(echoe ruby-debug-ide)
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
- install_dbi
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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rails_pwnerer}
5
- s.version = "0.6.69"
5
+ s.version = "0.6.70"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Victor Costan"]
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: 141
4
+ hash: 139
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 69
10
- version: 0.6.69
9
+ - 70
10
+ version: 0.6.70
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan