Class: RightScale::Platform::Installer
- Inherits:
-
PlatformHelperBase
- Object
- PlatformHelperBase
- RightScale::Platform::Installer
- Defined in:
- lib/right_agent/platform.rb,
lib/right_agent/platform/windows/platform.rb,
lib/right_agent/platform/unix/linux/platform.rb,
lib/right_agent/platform/unix/darwin/platform.rb
Overview
Controller
Defined Under Namespace
Classes: PackageManagerNotFound, PackageNotFound
Constant Summary
Constants inherited from PlatformHelperBase
PlatformHelperBase::API_FALSE, PlatformHelperBase::API_NULL, PlatformHelperBase::API_TRUE, PlatformHelperBase::SIZEOF_DWORD, PlatformHelperBase::SIZEOF_QWORD, PlatformHelperBase::WIDE
Instance Attribute Summary collapse
-
#output ⇒ String
Installer output or nil.
Instance Method Summary collapse
-
#aptitude? ⇒ TrueClass|FalseClass
Does this machine have aptitude?.
-
#initialize ⇒ Installer
constructor
A new instance of Installer.
-
#install(packages) ⇒ Object
Overrides base Installer#install.
-
#yum? ⇒ TrueClass|FalseClass
Does this machine have yum?.
-
#zypper? ⇒ TrueClass|FalseClass
Does this machine have zypper?.
Methods inherited from PlatformHelperBase
#copy_to_string_buffer, #with_unicode_buffer
Constructor Details
#initialize ⇒ Installer
Returns a new instance of Installer.
622 623 624 |
# File 'lib/right_agent/platform.rb', line 622 def initialize @output = nil end |
Instance Attribute Details
#output ⇒ String
Returns installer output or nil.
620 621 622 |
# File 'lib/right_agent/platform.rb', line 620 def output @output end |
Instance Method Details
#aptitude? ⇒ TrueClass|FalseClass
Does this machine have aptitude?
203 204 205 |
# File 'lib/right_agent/platform/unix/linux/platform.rb', line 203 def aptitude? ::File.executable? '/usr/bin/apt-get' end |
#install(packages) ⇒ Object
Overrides base Installer#install
638 639 640 |
# File 'lib/right_agent/platform.rb', line 638 def install(packages) must_be_overridden end |
#yum? ⇒ TrueClass|FalseClass
Does this machine have yum?
210 211 212 |
# File 'lib/right_agent/platform/unix/linux/platform.rb', line 210 def yum? ::File.executable? '/usr/bin/yum' end |
#zypper? ⇒ TrueClass|FalseClass
Does this machine have zypper?
217 218 219 |
# File 'lib/right_agent/platform/unix/linux/platform.rb', line 217 def zypper? ::File.executable? '/usr/bin/zypper' end |