Sha256: 94a10377a275f93cbe385a4170e562712940f57e2e45bd6b53fc07c7265bc9a9

Contents?: true

Size: 546 Bytes

Versions: 4

Compression:

Stored size: 546 Bytes

Contents

#!/usr/bin/env ruby

<%- if (bundler? && git?) -%>
root_dir = File.expand_path(File.join(File.dirname(__FILE__),'..'))
if File.directory?(File.join(root_dir,'.git'))
  Dir.chdir(root_dir) do |path|
    require 'bundler'

    begin
      Bundler.setup(:default)
    rescue Bundler::BundlerError => e
      STDERR.puts e.message
      STDERR.puts "Run `bundle install` to install missing gems"
      exit e.status_code
    end
  end

  lib_dir = File.join(root_dir,'lib')
  $LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
end
<%- end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ore-0.8.0 data/ore/templates/bin/bin/[name].erb
ore-0.7.2 data/ore/templates/bin/bin/[name].erb
ore-0.7.1 data/ore/templates/bin/bin/[name].erb
ore-0.7.0 data/ore/templates/bin/bin/[name].erb