Sha256: 778e8fce3b116e047b4227ec51e368b7c1b67e8a70af200095ae1e8a6c9c1dc3
Contents?: true
Size: 427 Bytes
Versions: 3
Compression:
Stored size: 427 Bytes
Contents
class Commit < Array def self.discover_commands commands if(Dir.exists?(".git")) if(!`git status`.include?('nothing to commit') || `git status`.include?('untracked files present')) commands["commit"] = Commit.new if(!commands.has_key?("commit")) commands["commit"].add 'git commit -a -v -m "commit all"' end end end def add command self << command if(!include?(command)) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dev_tasks-0.0.6 | lib/commit.rb |
dev_tasks-0.0.5 | lib/commit.rb |
dev_tasks-0.0.4 | lib/commit.rb |