Skip to content

Commit 7d14929

Browse files
author
Tom Copeland
committed
'cap shell' works now. When deleting spammers, also delete snippets.
1 parent f34bcc7 commit 7d14929

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.rvmrc

Diff for: app/models/user.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,12 @@ def to_json(args = {})
124124
end
125125

126126
def delete_child_records!
127-
puts "Deleting #{self.artifact_messages.count} messages"
127+
puts "Deleting #{self.artifact_messages.count} artifact messages"
128128
artifact_messages.each {|m| m.destroy }
129-
puts "Deleting #{self.forum_messages.count} messages"
129+
puts "Deleting #{self.forum_messages.count} forum messages"
130130
forum_messages.each {|m| m.destroy }
131+
puts "Deleting #{self.snippets.count} snippets"
132+
snippets.each {|m| m.destroy }
131133
end
132134

133135
def spammer!

Diff for: config/deploy.rb

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
set :use_sudo, false
1616
set :user, "webuser"
1717
set :group, "webgroup"
18+
ssh_options[:keys] = [File.join(ENV['HOME'], '.ssh', 'rubyforge_id_dsa')]
1819

1920
server "rubyforge.org", :app, :web
2021
role :db, "rubyforge.org", :primary => true

Diff for: config/environment.rb

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
# Specify gems that this application depends on and have them installed with rake gems:install
1818
config.gem 'json', :version => '>1.1.6'
19+
config.gem 'mongel'
1920

2021
# Only load the plugins named here, in the order given (default is alphabetical).
2122
# :all can be used as a placeholder for all plugins not explicitly named

0 commit comments

Comments
 (0)