Sha256: f54463426b7b4f28cadf4a154ba792271e396b19cf3f4d6825a10910adc6fdc3

Contents?: true

Size: 509 Bytes

Versions: 18

Compression:

Stored size: 509 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}" 
	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

18 entries across 18 versions & 1 rubygems

Version Path
dev-1.0.247 lib/dev/cmd/Commit.rb
dev-1.0.246 lib/dev/cmd/Commit.rb
dev-1.0.245 lib/dev/cmd/Commit.rb
dev-1.0.244 lib/dev/cmd/Commit.rb
dev-1.0.243 lib/dev/cmd/Commit.rb
dev-1.0.242 lib/dev/cmd/Commit.rb
dev-1.0.237 lib/dev/cmd/Commit.rb
dev-1.0.236 lib/dev/cmd/Commit.rb
dev-1.0.235 lib/dev/cmd/Commit.rb
dev-1.0.233 lib/dev/cmd/Commit.rb
dev-1.0.232 lib/dev/cmd/Commit.rb
dev-1.0.231 lib/dev/cmd/Commit.rb
dev-1.0.230 lib/dev/cmd/Commit.rb
dev-1.0.229 lib/dev/cmd/Commit.rb
dev-1.0.228 lib/dev/cmd/Commit.rb
dev-1.0.227 lib/dev/cmd/Commit.rb
dev-1.0.225 lib/dev/cmd/Commit.rb
dev-1.0.224 lib/dev/cmd/Commit.rb