Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

+ Added mass and diff options to rake debug.

+ Added rake run task w/ mass, diff, and liberal options
[git-p4: depot-paths = "//src/flay/dev/": change = 8322]
  • Loading branch information...
commit eb4591fcefc139725f6cbe465dd9dacc1b33ba08 1 parent 8c32f15
@zenspider zenspider authored
Showing with 18 additions and 1 deletion.
  1. +18 −1 Rakefile
View
19 Rakefile
@@ -25,10 +25,27 @@ task :debug do
require "flay"
file = ENV["F"]
+ mass = ENV["M"]
+ diff = ENV["D"]
+ libr = ENV["L"]
- flay = Flay.new
+ opts = Flay.parse_options
+ opts[:mass] = mass.to_i if mass
+ opts[:diff] = diff.to_i if diff
+ opts[:liberal] = true if libr
+
+ flay = Flay.new opts
flay.process(*Flay.expand_dirs_to_files(file))
flay.report
end
+task :run do
+ file = ENV["F"]
+ mass = ENV["M"] && "-m #{ENV["M"]}"
+ diff = ENV["D"] && "-d"
+ libr = ENV["L"] && "-l"
+
+ ruby "#{Hoe::RUBY_FLAGS} bin/flay #{mass} #{diff} #{libr} #{file}"
+end
+
# vim: syntax=ruby
Please sign in to comment.
Something went wrong with that request. Please try again.