Sha256: c9d81fddbb35979b6ba8a7acbe71bba309a9d895ce5440ecab2b15e9835e493e

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

namespace :tabs do
  desc "Prettify config/initializers/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')
    reformatted = Tabulous::Formatter.format(IO.readlines(filename))
    File.open(filename, 'w') do |f|
      f.puts reformatted
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tabulous-0.0.2 lib/tasks/tabulous.rake
tabulous-0.0.1 lib/tasks/tabulous.rake