Class: Ridley::CommandContext::UnixUninstall
- Defined in:
- lib/ridley/command_context/unix_uninstall.rb
Overview
Context class for generating an uninstall command for Unix based OSes
Instance Attribute Summary collapse
- #skip_chef ⇒ Boolean readonly
Attributes inherited from Unix
Instance Method Summary collapse
-
#config_directory ⇒ String
The path to the Chef configuration directory on the target host.
-
#data_directory ⇒ String
The path to the Chef data directory on the target host.
-
#initialize(options = {}) ⇒ UnixUninstall
constructor
A new instance of UnixUninstall.
-
#install_directory ⇒ String
The path to the Omnibus Chef installation on the target host.
Methods inherited from Unix
Methods inherited from Base
command, #command, template_file
Constructor Details
#initialize(options = {}) ⇒ UnixUninstall
Returns a new instance of UnixUninstall.
14 15 16 17 18 |
# File 'lib/ridley/command_context/unix_uninstall.rb', line 14 def initialize( = {}) super() = .reverse_merge(skip_chef: false) @skip_chef = [:skip_chef] end |
Instance Attribute Details
#skip_chef ⇒ Boolean (readonly)
8 9 10 |
# File 'lib/ridley/command_context/unix_uninstall.rb', line 8 def skip_chef @skip_chef end |
Instance Method Details
#config_directory ⇒ String
The path to the Chef configuration directory on the target host
23 24 25 |
# File 'lib/ridley/command_context/unix_uninstall.rb', line 23 def config_directory "/etc/chef" end |
#data_directory ⇒ String
The path to the Chef data directory on the target host
30 31 32 |
# File 'lib/ridley/command_context/unix_uninstall.rb', line 30 def data_directory "/var/chef" end |
#install_directory ⇒ String
The path to the Omnibus Chef installation on the target host
37 38 39 |
# File 'lib/ridley/command_context/unix_uninstall.rb', line 37 def install_directory "/opt/chef" end |