Sha256: d4e3462479f81e427c94aa605f9fad2c1dfa96413f85a1007476067b530e77cf

Contents?: true

Size: 578 Bytes

Versions: 4

Compression:

Stored size: 578 Bytes

Contents

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,:throw_on_error=>false}" 
	  #File.delete('commit.message') if File.exists?('commit.message')
	else
	  if scm_type == "git"
	    self << "{:cmd=>'git commit -a -F commit.message',:auto=>true}"
	  end
    end
  end

end	# class Compile
end # module Cmd
end # module Dev

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dev-1.0.241 lib/dev/cmd/Commit.rb
dev-1.0.240 lib/dev/cmd/Commit.rb
dev-1.0.239 lib/dev/cmd/Commit.rb
dev-1.0.238 lib/dev/cmd/Commit.rb