Sha256: 34b4ad2d753dce2c9a7d4af688992fd74916527ddb3ac4b8de54a91be4a7ed92

Contents?: true

Size: 637 Bytes

Versions: 3

Compression:

Stored size: 637 Bytes

Contents

#!/usr/bin/env ruby

require 'happy_gemfile'

if ARGV.empty?
  puts "\nHey! I need some arguments here!\n\n"\
     "You can run 'happy_gemfile all' for everything, or, if you don't trust me, you can pass any of these in:\n\n"\
     "alphabetize - Organizes gems alphabetically\n"\
     "wipe_comments - Removes all, non-inline comments\n"\
     "organize_groups - Places everything tidily their specified group."
  exit
end

gemfile = HappyGemfile.gemfile

%w(wipe_comments organize_groups alphabetize).each{|arg|gemfile = HappyGemfile.send(arg, gemfile) unless [arg, 'all'] - ARGV == [arg, 'all']}

HappyGemfile.replace_gemfile gemfile

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
happy_gemfile-0.1.2 exe/happy_gemfile
happy_gemfile-0.1.1 exe/happy_gemfile
happy_gemfile-0.1.0 exe/happy_gemfile