lib/tasks/tabulous.rake in tabulous-0.0.2 vs lib/tasks/tabulous.rake in tabulous-1.0.0
- old
+ new
@@ -1,9 +1,9 @@
namespace :tabs do
- desc "Prettify config/initializers/tabulous.rb"
+ desc "Prettify app/tabs/tabulous.rb"
task :format do
require File.expand_path('../tabulous/formatter', File.dirname(__FILE__))
- filename = File.join(Rails.root.to_s, 'config', 'initializers', 'tabulous.rb')
+ filename = File.join(Rails.root.to_s, 'app', 'tabs', 'tabulous.rb')
reformatted = Tabulous::Formatter.format(IO.readlines(filename))
File.open(filename, 'w') do |f|
f.puts reformatted
end
end