rails_pwnerer 0.6.20 → 0.6.21

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 CHANGED
@@ -1,3 +1,5 @@
1
+ v0.6.21. Mass-upgrade to all packages at the end of scaffolding.
2
+
1
3
  v0.6.20. Redirecting apt-get and dpkg input to /dev/null to avoid install-time prompts from mysql and dyndns.
2
4
 
3
5
  v0.6.19. Added LSB header to rpwnctl. Using symbolic links instead of copying for init.d scripts so they can be upgraded.
@@ -23,17 +23,21 @@ module RailsPwnage::Base
23
23
 
24
24
  install_package(package_name, :source => true)
25
25
  else
26
- system "apt-get upgrade -y #{package_name.nil ? '' : package_name}"
26
+ system "apt-get upgrade -y #{package_name.nil ? '' : package_name} < /dev/null"
27
27
  end
28
28
  end
29
29
 
30
+ def upgrade_all_packages()
31
+ system "apt-get upgrade -y < /dev/null"
32
+ end
33
+
30
34
  def remove_package(package_name, options = {})
31
35
  system "apt-get remove -y #{package_name}" unless package_name.nil?
32
36
  end
33
37
 
34
38
  # update the metadata for all the packages
35
39
  def update_package_metadata()
36
- system "apt-get update"
40
+ system "apt-get update -y < /dev/null"
37
41
  end
38
42
 
39
43
  # add a source to the package system
@@ -13,6 +13,10 @@ class RailsPwnage::Scaffolds::Packages
13
13
  # subversion is needed to pull code from SVN repositories
14
14
  # should work from source, except package author decided to block that
15
15
  install_packages %w(subversion)
16
+
17
+ # rpwn doesn't deal with git yes, but we'd like to offer that, so we'll
18
+ # bring in the git infrastructure during scaffolding
19
+ install_packages %w(git)
16
20
 
17
21
  # ddclient does dynamic DNS
18
22
  # avahi-daemon does mDNS, a.k.a. Bonjour (makes "ping hostname.local" work)
@@ -70,6 +74,7 @@ class RailsPwnage::Scaffolds::Packages
70
74
  install_sqlite3
71
75
  install_balancer
72
76
  install_mysql
77
+ upgrade_all_packages
73
78
  end
74
79
 
75
80
  # standalone runner
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{rails_pwnerer}
3
- s.version = "0.6.20"
3
+ s.version = "0.6.21"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Victor Costan"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_pwnerer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.20
4
+ version: 0.6.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Costan