def install
      extend Rake::DSL
      # Core Halite tasks
      unless options[:no_gem]
        desc "Convert #{gemspec.name}-#{gemspec.version} to a cookbook in the pkg directory"
        task 'chef:build' do
          build_cookbook
        end

        desc "Push #{gemspec.name}-#{gemspec.version} to Supermarket"
        task 'chef:release' => ['chef:build'] do
          release_cookbook(pkg_path)
        end

        # Patch the core gem tasks to run ours too
        task 'build' => ['chef:build']
        task 'release' => ['chef:release']
      else
        desc "Push #{gem_name} to Supermarket"
        task 'chef:release' do
          release_cookbook(base)
        end
      end

      # Foodcritic doesn't have a config file, so just always try to add it.
      unless options[:no_foodcritic]
        install_foodcritic
      end

      # If a .kitchen.yml exists, install the Test Kitchen tasks.
      unless options[:no_kitchen] || !File.exist?(File.join(@base, '.kitchen.yml'))
        install_kitchen
      end
    end
def install
      extend Rake::DSL
      # Core Halite tasks
      unless options[:no_gem]
        desc "Convert #{gemspec.name}-#{gemspec.version} to a cookbook in the pkg directory"
        task 'chef:build' do
          build_cookbook
        end

        desc "Push #{gemspec.name}-#{gemspec.version} to Supermarket"
        task 'chef:release' => ['chef:build'] do
          release_cookbook(pkg_path)
        end

        # Patch the core gem tasks to run ours too
        task 'build' => ['chef:build']
        task 'release' => ['chef:release']
      else
        desc "Push #{gem_name} to Supermarket"
        task 'chef:release' do
          release_cookbook(base)
        end
      end

      # Foodcritic doesn't have a config file, so just always try to add it.
      unless options[:no_foodcritic]
        install_foodcritic
      end

      # If a .kitchen.yml exists, install the Test Kitchen tasks.
      unless options[:no_kitchen] || !File.exist?(File.join(@base, '.kitchen.yml'))
        install_kitchen
      end
    end
Install all Rake tasks.

 @return [void]