Module: SysChecks
- Defined in:
- lib/ec2/amitools/syschecks.rb
Class Method Summary collapse
- .get_system_arch ⇒ Object
- .good_tar_version? ⇒ Boolean
- .root_user? ⇒ Boolean
- .rsync_usable? ⇒ Boolean
Class Method Details
.get_system_arch ⇒ Object
21 22 23 |
# File 'lib/ec2/amitools/syschecks.rb', line 21 def self.get_system_arch() EC2::Platform::Current::System::BUNDLING_ARCHITECTURE end |
.good_tar_version? ⇒ Boolean
18 19 20 |
# File 'lib/ec2/amitools/syschecks.rb', line 18 def self.good_tar_version?() EC2::Platform::Current::Tar::Version.current.usable? end |
.root_user? ⇒ Boolean
24 25 26 |
# File 'lib/ec2/amitools/syschecks.rb', line 24 def self.root_user?() EC2::Platform::Current::System.superuser? end |
.rsync_usable? ⇒ Boolean
15 16 17 |
# File 'lib/ec2/amitools/syschecks.rb', line 15 def self.rsync_usable?() EC2::Platform::Current::Rsync.usable? end |