Sha256: 450732dc9ac74ea226a8d221f57faa2700acb37830bea74c2ac38eb05afa71d7
Contents?: true
Size: 451 Bytes
Versions: 3
Compression:
Stored size: 451 Bytes
Contents
require 'awesome_print' module Gemfiler class CLI < Thor desc 'file', 'Organizes your Gemfile.' def file(gemfile='./Gemfile') gemfile = File.expand_path("../../../#{gemfile}", __FILE__) cabinet = Gemfiler::Cabinet.new(gemfile) cabinet.collect! filer = Gemfiler::Filer.new(cabinet) filer.group filer.alphabetize output = Gemfiler::Output.new(filer) output.write(gemfile) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
gemfiler-0.1.0 | lib/Gemfiler/cli.rb |
gemfiler-0.0.1 | lib/Gemfiler/cli.rb |
Gemfiler-0.0.1 | lib/Gemfiler/cli.rb |