#!/usr/bin/env ruby require 'harker/gemify' begin gem 'hoe' rescue LoadError abort 'Hoe not found. You can continue without hoe if you gemify your app yourself; see Harker documentation for details.' end if ARGV.include?('-h') or ARGV.include?('--help') or ARGV.size > 1 puts "Usage: #{File.basename($0)} [RAILS_ROOT]" puts puts "Attempts to turn your Rails app into a gem for deployment with harker." exit end Harker.gemify(ARGV.shift || Dir.pwd)