Skip to content

Commit f2d1b16

Browse files
committed
Nicer bootstrap for rake cloudfuji:install, but at the cost of copy/paste
1 parent 3d12bca commit f2d1b16

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

lib/tasks/cloudfuji.rake

+19-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,25 @@ namespace :cloudfuji do
1717

1818
if channel.nil?
1919
puts "Creating default channel..."
20-
channel = Channel.create :name => "Lobby"
20+
channel = Channel.create :name => "Tea room"
21+
22+
["Welcome to Kandan, the slickest chat app out there. Brought to you by the good people of CloudFuji (http://cloudfuji.com) and friends",
23+
"We think you'll really like Kandan, but if there's anything you would like to see, Kandan is fully open source, so you can dive into it or make suggestions on the mailing list.",
24+
"To get started, you can embed images or youtube clips, use the /me command (/me is in proper love with Kandan, innit!), upload files, or of course, just chat with your teammates.",
25+
"Just paste in an image url and type a subtitle http://kandan.me/images/kandan.png",
26+
"http://www.youtube.com/watch?v=Jgpty017CIw Same with youtube videos",
27+
"/me is in proper love with Kandan, innit!",
28+
"If you're the type of person who enjoys hacking on projects, the source to Kandan is at https://github.com/cloudfuji/kandan",
29+
"Well, that's about it. If you have any questions, concerns, or ideas, just shoot us an email support@cloudfuji.com! Have fun!",
30+
"Oh, sorry, one last thing - be sure to join the mailing list at https://groups.google.com/forum/?fromgroups#!forum/cloudfuji so you know there's a new release of Kandan!"
31+
].each do |message|
32+
a = Activity.new
33+
a.content = message
34+
a.channel_id = Channel.first
35+
a.user_id = User.first
36+
a.action = "message"
37+
a.save!
38+
end
2139
end
2240
end
2341
end

0 commit comments

Comments
 (0)