lib/generators/roodi.rb in edouard-metric_fu-1.0.4.5 vs lib/generators/roodi.rb in edouard-metric_fu-1.1.1
- old
+ new
@@ -1,6 +1,13 @@
module MetricFu
class Roodi < Generator
+
+ def self.verify_dependencies!
+ `roodi --help`
+ raise 'sudo gem install roodi # if you want the roodi tasks' unless $?.success?
+ end
+
+
def emit
files_to_analyze = MetricFu.roodi[:dirs_to_roodi].map{|dir| Dir[File.join(dir, "**/*.rb")] }
@output = `roodi #{files_to_analyze.join(" ")}`
end