module Dev module Cmd class Commit < Array def refresh strip_auto_entries File.open('commit.message','w'){|f|f.puts "commit all"} if !File.exists?('commit.message') self << "{:cmd=>'git commit -a -F commit.message',:auto=>true}" if File.exists?(".git") self << "{:cmd=>'svn commit -F commit.message',:auto=>true}" if File.exists?(".svn") end end # class Compile end # module Cmd end # module Dev