Class: Gnome

Inherits:
Object show all
Extended by:
Assertions::ClassMethods, ClassMethods
Includes:
Assertions, Constants
Defined in:
app/models/gnome.rb

Defined Under Namespace

Modules: Assertions, ClassMethods, Constants, Examples

Constant Summary

Constants included from Constants

Constants::Data_Sources_Dir

Instance Method Summary collapse

Methods included from Assertions::ClassMethods

assert_post_conditions

Methods included from Assertions

#assert_post_conditions, #assert_pre_conditions

Instance Method Details

#lsofObject

include DefaultAssertions extend DefaultAssertions::ClassMethods


19
20
21
22
# File 'app/models/gnome.rb', line 19

def lsof
	lsof=ShellCommands.new('lsof')
	IO.binwrite(Data_Sources_Dir+'test.lsof', lsof.output)
end

#psObject

lsof


23
24
25
26
# File 'app/models/gnome.rb', line 23

def ps
	ps=ShellCommands.new('ps -ef')
	IO.binwrite(Data_Sources_Dir+'test.ps', ps.output)
end