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 +2 -0
- data/lib/pwnage/base/packages.rb +6 -2
- data/lib/pwnage/scaffolds/packages.rb +5 -0
- data/rails_pwnerer.gemspec +1 -1
- metadata +1 -1
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.
|
data/lib/pwnage/base/packages.rb
CHANGED
@@ -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
|
data/rails_pwnerer.gemspec
CHANGED