Skip to content

Commit

Permalink
simplified the paragraphs, so they are simly strings, rather than lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
kotp committed Jun 30, 2012
1 parent 5d5d418 commit c025735
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main.rb
Expand Up @@ -54,17 +54,17 @@ def self.external_ip

flow width: 0.7 do
vital_statistics = {
hostname: -> {para "Your hostname is: #{Facter.hostname} "},
username: -> {para "Your username is: #{Facter.id} "},
ipaddress: -> {para "Your IP Address is: #{Facter.ipaddress} "},
lsbdistrdescription: -> {para "You are running: #{Facter.lsbdistdescription} "},
uptime: -> {para "Your uptime is: #{Facter.uptime}"},
externalip: -> {para "Your external IP address is: #{$ExternalIP} "},
hostname: "Your hostname is: #{Facter.hostname} ",
username: "Your username is: #{Facter.id} ",
ipaddress: "Your IP Address is: #{Facter.ipaddress} ",
lsbdistrdescription: "You are running: #{Facter.lsbdistdescription} ",
uptime: "Your uptime is: #{Facter.uptime}",
externalip: "Your external IP address is: #{$ExternalIP} ",
}

vital_statistics.each_key do |key|
stack height: 30 do
vital_statistics[key].call
para vital_statistics[key]
end
end

Expand Down

0 comments on commit c025735

Please sign in to comment.