Sha256: 7f87b0bb78715008dedf024b3dd79aaa90444468509a6ef40e04326fe6461be3
Contents?: true
Size: 374 Bytes
Versions: 8
Compression:
Stored size: 374 Bytes
Contents
namespace :tabs do 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, 'app', 'tabs', 'tabulous.rb') reformatted = Tabulous::Formatter.format(IO.readlines(filename)) File.open(filename, 'w') do |f| f.puts reformatted end end end
Version data entries
8 entries across 8 versions & 1 rubygems