def commit_directories(directories, message)
      log.debug "committing with message: #{message}"

      Dir.chdir(@directory) do
        directories.each do |directory|
          run("git rm -r --cached --ignore-unmatch #{directory}")
          run("git add #{directory}")
        end
        run("git commit --allow-empty -F -", false, message)
      end
    end
def commit_directories(directories, message)
      log.debug "committing with message: #{message}"

      Dir.chdir(@directory) do
        directories.each do |directory|
          run("git rm -r --cached --ignore-unmatch #{directory}")
          run("git add #{directory}")
        end
        run("git commit --allow-empty -F -", false, message)
      end
    end
adds all files in the specified directories,
 removes all files not in the specified directories,
 commits with message