Module: HawatelPS
- Defined in:
- lib/hawatel_ps.rb,
lib/hawatel_ps/linux/proc_info.rb,
lib/hawatel_ps/linux/proc_fetch.rb,
lib/hawatel_ps/linux/proc_table.rb,
lib/hawatel_ps/windows/proc_info.rb,
lib/hawatel_ps/linux/proc_control.rb,
lib/hawatel_ps/windows/proc_fetch.rb,
lib/hawatel_ps/windows/proc_table.rb,
lib/hawatel_ps/windows/wmi/wmi_cli.rb,
lib/hawatel_ps/windows/proc_control.rb,
lib/hawatel_ps/windows/wmi/wmi_instance.rb,
lib/hawatel_ps/windows/wmi/wmi_exception.rb,
lib/hawatel_ps/shared/hawatelps_exception.rb
Defined Under Namespace
Modules: Linux, Windows
Classes: HawatelPSException
Class Method Summary
collapse
Class Method Details
24
25
26
27
28
29
30
31
32
|
# File 'lib/hawatel_ps.rb', line 24
def self.platform
if RUBY_PLATFORM =~ /linux/
Linux
elsif RUBY_PLATFORM =~ /mswin|msys|mingw|cygwin|bccwin|wince|emc/
Windows
else
raise HawatelPSException.new({:message => "Your OS(#{RUBY_PLATFORM}) is not supported!"})
end
end
|
.proc_table ⇒ Object
20
21
22
|
# File 'lib/hawatel_ps.rb', line 20
def self.proc_table
HawatelPS::platform::ProcTable.proc_table
end
|
.search_by_condition(args) ⇒ Object
16
17
18
|
# File 'lib/hawatel_ps.rb', line 16
def self.search_by_condition(args)
HawatelPS::platform::ProcTable.search_by_condition(args)
end
|
.search_by_name(name) ⇒ Object
12
13
14
|
# File 'lib/hawatel_ps.rb', line 12
def self.search_by_name(name)
HawatelPS::platform::ProcTable.search_by_name(name)
end
|
.search_by_pid(pid) ⇒ Object
8
9
10
|
# File 'lib/hawatel_ps.rb', line 8
def self.search_by_pid(pid)
HawatelPS::platform::ProcTable.search_by_pid(pid)
end
|