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

Version Path
chef-flavor-flay-1.1.0 lib/chef_gen/flavor/flay.rb
chef-flavor-flay-1.0.1 lib/chef_gen/flavor/flay.rb
chef-flavor-flay-1.0.0 lib/chef_gen/flavor/flay.rb
chef-flavor-flay-0.4.1 lib/chef_gen/flavor/flay.rb
chef-flavor-flay-0.4.0 lib/chef_gen/flavor/flay.rb
chef-flavor-flay-0.3.2 lib/chef_gen/flavor/flay.rb
chef-flavor-flay-0.3.1 lib/chef_gen/flavor/flay.rb
chef-flavor-flay-0.3.0 lib/chef_gen/flavor/flay.rb