Class: ChefInstance::Install::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/chef_instance/install.rb

Overview

A Superclass template for installing software.

Direct Known Subclasses

Existing, Package

Instance Method Summary collapse

Constructor Details

#initialize(new_resource, run_context = nil) ⇒ Template

Construct a new ChefInstance::Install::Template.

Parameters:

  • new_resource (Chef::Resource)
  • run_context (Chef::RunContext) (defaults to: nil)


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

#installObject



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

#uninstallObject



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