Sha256: 8b1bb56d826ee84d650ce2a8396e431cd1203f83ab2875931758c210b0fc90c8

Contents?: true

Size: 497 Bytes

Versions: 3

Compression:

Stored size: 497 Bytes

Contents

#!/usr/bin/env ruby

require 'fix_mah_gemfile.rb'

if ARGV.include? "--help"
  FixMahGemfile::Processor.usage
  exit 0
end

if ARGV.include? "--generate_rc"
  FixMahGemfile::Processor.generate_sample_rc
  exit 0
end

if !File.exist?("./Gemfile")
  puts "Cant find Gemfile in current directory to modify"
  FixMahGemfile::Processor.usage
  exit 1
end

if ARGV[0]
  load ARGV[0]
elsif File.exist?(".fixgemfile_rc")
  load ".fixgemfile_rc"
else
  FixMahGemfile::Processor.usage
  exit 1
end

exit 0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fix_mah_gemfile-0.0.3 bin/fix_mah_gemfile
fix_mah_gemfile-0.0.2 bin/fix_mah_gemfile
fix_mah_gemfile-0.0.1 bin/fix_mah_gemfile