Sha256: f30299e72e31b9c4a66330d0cae0f8ed6cde50cf3ad78ad43946b4ab7979eed3
Contents?: true
Size: 493 Bytes
Versions: 2
Compression:
Stored size: 493 Bytes
Contents
module Gemfiler class CLI < Thor desc "file", "Organizes your Gemfile." method_options nice_spaces: :boolean, ruby19_hashes: :boolean, annotate: :boolean def file(gemfile="Gemfile") gemfile = "#{Dir.pwd}/#{gemfile}" cabinet = Gemfiler::Cabinet.new(gemfile) cabinet.collect! filer = Gemfiler::Filer.new(cabinet) filer.group filer.alphabetize output = Gemfiler::Output.new(filer, options) output.write(gemfile) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemfiler-0.1.7 | lib/gemfiler/cli.rb |
gemfiler-0.1.6 | lib/gemfiler/cli.rb |