Sha256: ec720aa501d1239be5333afc4e7a0e13fb7ec619b419eb5c6de005305822c442

Contents?: true

Size: 565 Bytes

Versions: 1

Compression:

Stored size: 565 Bytes

Contents

module ChefGen
  module Flavor
    class Flay
      NAME    = "flay".freeze
      DESC    = "Generate a new cookbook with **better** defaults".freeze
      VERSION = "0.1.0".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

1 entries across 1 versions & 1 rubygems

Version Path
chef-flavor-flay-0.1.0 lib/chef_gen/flavor/flay.rb