Sha256: 899cf9a9815bc9ba6f3e066d2e6af814304268d48208e34868f8890b11affeaa
Contents?: true
Size: 622 Bytes
Versions: 8
Compression:
Stored size: 622 Bytes
Contents
module ChefGen # rubocop:disable Style/ClassAndModuleChildren module Flavor # rubocop:disable Style/ClassAndModuleChildren class Flay NAME = "flay".freeze DESC = "Generate a new cookbook with **better** defaults".freeze attr_reader :temp_path def initialize(temp_path: nil) @temp_path = temp_path end def add_content FileUtils.cp_r(File.expand_path(flavor_cookbook_path) + "/.", temp_path) end private def flavor_cookbook_path File.join(File.dirname(__FILE__), "..", "..", "..", "shared", "flavor", NAME) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems