File: host.rb

package info (click to toggle)
ruby-peek-host 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 100 kB
  • sloc: ruby: 26; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 231 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Peek
  module Views
    class Host < View
      
      # Returns Peek::Views::Host
      def initialize(options = {})
        @hostname = hostname
      end

      def hostname
        `hostname`
      end
    end
  end
end