lib/commit.rb in dev_tasks-0.0.6 vs lib/commit.rb in dev_tasks-0.0.7

- old
+ new

@@ -1,11 +1,10 @@ class Commit < Array - def self.discover_commands commands + def initialize 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"' + self.add 'git commit -a -v -m "commit all"' end end end def add command \ No newline at end of file