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') scm_type = Scm.get_default_scm_type if scm_type == "svn" self << "{:cmd=>'svn commit -F commit.message',:auto=>true}" else if scm_type == "git" self << "{:cmd=>'git commit -a -F commit.message',:auto=>true}" #self << "{:cmd=>'git svn dcommit',:auto=>true}" end end end end # class Compile end # module Cmd end # module Dev