Class: Custodian::Samplers::Who

Inherits:
Sampler
  • Object
show all
Defined in:
lib/custodian/samplers/darwin/who.rb

Class Method Summary collapse

Methods inherited from Sampler

compatible?, describe, description

Methods included from Utilities

directory_exists?, file_exists?, program_exists?

Class Method Details

.sampleObject



7
8
9
# File 'lib/custodian/samplers/darwin/who.rb', line 7

def self.sample
  `who`.lines.collect { |line| line.split.first }.uniq
end