Class: EC2::Platform::Linux::Uname
- Inherits:
-
Object
- Object
- EC2::Platform::Linux::Uname
- Defined in:
- lib/ec2/platform/linux/uname.rb
Direct Known Subclasses
Class Method Summary collapse
- .all ⇒ Object
- .machine ⇒ Object
- .nodename ⇒ Object
- .os ⇒ Object
- .platform ⇒ Object
- .processor ⇒ Object
- .release ⇒ Object
- .uname ⇒ Object
Class Method Details
.all ⇒ Object
19 20 21 |
# File 'lib/ec2/platform/linux/uname.rb', line 19 def self.all @@uname.all ||= `uname -a`.strip end |
.machine ⇒ Object
37 38 39 |
# File 'lib/ec2/platform/linux/uname.rb', line 37 def self.machine @@uname.machine ||= `uname -m`.strip end |
.nodename ⇒ Object
25 26 27 |
# File 'lib/ec2/platform/linux/uname.rb', line 25 def self.nodename @@uname.nodename ||= `uname -n`.strip end |
.os ⇒ Object
34 35 36 |
# File 'lib/ec2/platform/linux/uname.rb', line 34 def self.os @@uname.os ||= `uname -s`.strip end |
.platform ⇒ Object
22 23 24 |
# File 'lib/ec2/platform/linux/uname.rb', line 22 def self.platform @@uname.platform ||= `uname -i`.strip end |
.processor ⇒ Object
28 29 30 |
# File 'lib/ec2/platform/linux/uname.rb', line 28 def self.processor @@uname.processor ||= `uname -p`.strip end |
.release ⇒ Object
31 32 33 |
# File 'lib/ec2/platform/linux/uname.rb', line 31 def self.release @@uname.release ||= `uname -r`.strip end |
.uname ⇒ Object
40 41 42 |
# File 'lib/ec2/platform/linux/uname.rb', line 40 def self.uname @@uname end |