lib/doc.rb in dev_commands-0.0.13 vs lib/doc.rb in dev_commands-0.0.14

- old
+ new

@@ -1,5 +1,9 @@ class Doc < Array def update - add 'yard doc - LICENSE' if File.exists?('README.md') && File.exists?('LICENSE') + cmd=Command.new ({ :input => 'yard --version', :ignore_failure => true}) + cmd.execute + if(cmd[:exit_code]==0) + add 'yard doc - LICENSE' if File.exists?('README.md') && File.exists?('LICENSE') + end end end \ No newline at end of file