diff options
Diffstat (limited to 'projects/devdashboard/devdashboard.rb')
-rwxr-xr-x | projects/devdashboard/devdashboard.rb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/projects/devdashboard/devdashboard.rb b/projects/devdashboard/devdashboard.rb new file mode 100755 index 0000000..9bcc449 --- /dev/null +++ b/projects/devdashboard/devdashboard.rb @@ -0,0 +1,42 @@ +#!/usr/bin/ruby -w + +require 'developer.rb' +require 'herds.rb' +require 'userinfo.rb' +require 'planetiniparser.rb' + +include Herds +include UserInfo +include PlanetIniParser + +dev = Developer.new +dev.handle = ARGV[0] +#dev.handle = 'nichoj' + +UserInfo.updateDev(dev) +Herds.updateDev(dev) +PlanetIniParser.updateDev(dev) + + +puts "Name: #{dev.name}" +puts "Username: #{dev.handle}" +puts "Email: #{dev.email}" +puts "PGP Key: #{dev.pgpkey}" +puts "Roles: #{dev.roles}" +unless dev.herds.nil? + puts "Herds: " + dev.herds.each { |herd| puts "\t#{herd}"} +end +puts "Joined: #{dev.joined}" +puts "Birthday: #{dev.birthday}" unless dev.birthday.nil? +puts "Location: #{dev.location}" +unless dev.blogRss.nil? + puts "Blog RSS: #{dev.blogRss}" + puts "Blog Posts: " + dev.blogItems.each { |item| puts "\t#{item.title}" } + puts "Hackergotchi: #{dev.hackergotchi}" unless dev.hackergotchi.nil? +end +puts "Commits RSS: #{dev.ciaRss}" +puts "Commits: " +dev.commitItems.each { |item| puts "\t#{item.title}" } +puts "Bugs RSS: #{dev.myBugsRss}" |