Module: Halite::Converter

Defined in:
lib/halite/converter.rb,
lib/halite/converter/chef.rb,
lib/halite/converter/misc.rb,
lib/halite/converter/metadata.rb,
lib/halite/converter/libraries.rb

Overview

Convert a cookbook gem to a normal Chef cookbook.

Examples:

Halite::Converter.write(Halite::Gem.new(gemspec), 'dest')

Returns:

  • (void)

Since:

  • 1.0.0

Class Method Summary collapse

Class Method Details

.write(gem_data, output_path)

This method returns an undefined value.

Convert a cookbook gem to a normal Chef cookbook.

Examples:

Halite::Converter.write(Halite::Gem.new(gemspec), 'dest')

Parameters:

  • gem_data (Halite::Gem)

    Gem to convert.

  • output_path (String)

    Output path.

Since:

  • 1.0.0



34
35
36
37
38
39
# File 'lib/halite/converter.rb', line 34

def self.write(gem_data, output_path)
  Chef.write(gem_data, output_path)
  Libraries.write(gem_data, output_path)
  Metadata.write(gem_data, output_path)
  Misc.write(gem_data, output_path)
end