Class: Scriptlandia::Configurer

Inherits:
Object
  • Object
show all
Includes:
Config
Defined in:
lib/configurer.rb

Instance Method Summary collapse

Instance Method Details

#configureObject



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/configurer.rb', line 13

def configure
  ARGV.shift

  prepare()

  install_settings(File.dirname(__FILE__) + "/../" + "lib/settings.yaml", $my_libdir + "/../settings.yaml")

  settings = YAML::load File.open($my_libdir + "/../settings.yaml")

  install_file(File.dirname(__FILE__) + "/../bin/sl.bat", $my_bindir, "/sl.bat", settings) if CONFIG['host_os'] =~ /mswin/

  install_file_with_header($my_gem_path + "/bin/sl", $my_gem_path + "/bin/sl", settings)
end