Module: SysChecks

Defined in:
lib/ec2/amitools/syschecks.rb

Class Method Summary collapse

Class Method Details

.get_system_archObject



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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)


15
16
17
# File 'lib/ec2/amitools/syschecks.rb', line 15

def self.rsync_usable?()
  EC2::Platform::Current::Rsync.usable?
end