class Raykit::Project
def commit(commit_message)
def commit(commit_message) warn "[DEPRECATION] 'commit_message_filename' is deprecated. Use a run command for better transparency." Dir.chdir(@directory) do if File.exist?(".gitignore") status = `git status` if status.include?("Changes not staged for commit:") run("git add --all") if GIT_DIRECTORY.outstanding_commit? if File.exist?(@commit_message_filename) run("git commit --file #{@commit_message_filename}") File.delete(@commit_message_filename) else run("git commit -m'#{commit_message}'") end end end else puts "warning: .gitignore not found." end end self end