Class: ChefInstance::Install::Existing

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

Overview

A Superclass for installing softare that already exists on the system. Useful for software copied on to the system from the outside, or available on the local disk.

Instance Method Summary collapse

Constructor Details

#initialize(new_resource, run_context = nil) ⇒ Existing

Construct a new Existing object.

Parameters:

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


12
13
14
15
16
# File 'lib/chef_instance/install/existing.rb', line 12

def initialize(new_resource, run_context = nil)
  super
  @new_resource = new_resource
  @run_context = run_context
end

Instance Method Details

#installObject

We don't really install since its already existing.



19
20
# File 'lib/chef_instance/install/existing.rb', line 19

def install
end

#uninstallObject

We don't really uninstall since its already existing.



23
24
# File 'lib/chef_instance/install/existing.rb', line 23

def uninstall
end