Class: Gem::Installer

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler08/gem_ext.rb

Instance Method Summary collapse

Instance Method Details

#app_script_text(bin_file_name) ⇒ Object



5
6
7
8
9
10
# File 'lib/bundler08/gem_ext.rb', line 5

def app_script_text(bin_file_name)
  path = Pathname.new(@gem_home)
  template = File.read(File.join(File.dirname(__FILE__), "templates", "app_script.erb"))
  erb = ERB.new(template, nil, '-')
  erb.result(binding)
end