Class: Gemfiler::CLI
- Inherits:
-
Thor
- Object
- Thor
- Gemfiler::CLI
- Defined in:
- lib/Gemfiler/cli.rb
Instance Method Summary collapse
Instance Method Details
#file(gemfile = './Gemfile') ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/Gemfiler/cli.rb', line 7 def file(gemfile='./Gemfile') gemfile = File.("../../../#{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 |