module SousVide

Interface to use SousVide in Chef.

Provides a shortcut methods to configure and enable SousVide.

@example Enable SousVide with JSON HTTP output and custom run name

ruby_block "enable SousVide" do
  block do
    json_http_output = SousVide::Outputs::JsonHTTP.new(url: "http://localhost:3000")
    SousVide.run_name = "custom run name"
    SousVide.sous_output = json_http_output
    SousVide.register(node.run_context)
  end
  action :nothing
end.run_action(:run)

Constants

VERSION

Public Class Methods

logger=(logger) click to toggle source

(see SousVide::Handler#logger)

# File lib/sous_vide.rb, line 42
def self.logger=(logger)
  SousVide::Handler.instance.logger = logger
end
register(chef_run_context) click to toggle source

(see SousVide::Handler.register)

# File lib/sous_vide.rb, line 22
def self.register(chef_run_context)
  SousVide::Handler.register(chef_run_context)
end
run_id=(text) click to toggle source

(see SousVide::Handler#run_id)

# File lib/sous_vide.rb, line 37
def self.run_id=(text)
  SousVide::Handler.instance.run_id = text
end
run_name=(text) click to toggle source

(see SousVide::Handler#run_name)

# File lib/sous_vide.rb, line 32
def self.run_name=(text)
  SousVide::Handler.instance.run_name = text
end
sous_output=(output) click to toggle source

(see SousVide::Handler#sous_output)

# File lib/sous_vide.rb, line 27
def self.sous_output=(output)
  SousVide::Handler.instance.sous_output = output
end