Sha256: b0e550983a8836e67eb7555ab699fcf6555a9c9ddecd9320365cf2cbc1413098

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

#!/usr/bin/env ruby

begin
  require '<%= name %>'
rescue LoadError
  raise unless $!.message =~ /\b<%= name %>$/

  lib = File.expand_path('../../lib', __FILE__)
  if !$:.include?(lib)
    warn "#{$!}. Trying again with #{lib} on the $LOAD_PATH."
    $:.unshift(lib)
    retry
  end

  raise
end

<%= module_name %>::Application.new.run(ARGV)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shoe-0.6.2 data/shoe/templates/executable.erb
shoe-0.6.1 data/shoe/templates/executable.erb
shoe-0.6.0 data/shoe/templates/executable.erb