Class: ChefInstance::Install::Template
- Inherits:
-
Object
- Object
- ChefInstance::Install::Template
- Defined in:
- lib/chef_instance/install.rb
Overview
A Superclass template for installing software.
Instance Method Summary collapse
-
#initialize(new_resource, run_context = nil) ⇒ Template
constructor
Construct a new ChefInstance::Install::Template.
- #install ⇒ Object
- #uninstall ⇒ Object
Constructor Details
#initialize(new_resource, run_context = nil) ⇒ Template
Construct a new ChefInstance::Install::Template.
8 9 10 11 |
# File 'lib/chef_instance/install.rb', line 8 def initialize(new_resource, run_context = nil) @new_resource = new_resource @run_context = run_context end |
Instance Method Details
#install ⇒ Object
13 14 15 16 |
# File 'lib/chef_instance/install.rb', line 13 def install fail NotImplementedError, 'You must override the install method in your sub-class.' end |
#uninstall ⇒ Object
18 19 20 21 |
# File 'lib/chef_instance/install.rb', line 18 def uninstall fail NotImplementedError, 'You must override the uninstall method in your sub-class.' end |