Class: RuGUI::GemBoot

Inherits:
Boot show all
Defined in:
lib/rugui/generators/rugui/templates/config/boot.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Boot

#run

Class Method Details

.load_rubygemsObject



70
71
72
73
74
75
# File 'lib/rugui/generators/rugui/templates/config/boot.rb', line 70

def load_rubygems
  require 'rubygems'
rescue LoadError
  $stderr.puts %(RuGUI requires RubyGems. Please install RubyGems and try again: http://rubygems.rubyforge.org)
  exit 1
end

.rubygems_versionObject



66
67
68
# File 'lib/rugui/generators/rugui/templates/config/boot.rb', line 66

def rubygems_version
  Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
end

Instance Method Details

#load_initializerObject



52
53
54
55
56
# File 'lib/rugui/generators/rugui/templates/config/boot.rb', line 52

def load_initializer
  self.class.load_rubygems
  load_rugui
  require 'rugui/initializer'
end

#load_ruguiObject



58
59
60
61
62
63
# File 'lib/rugui/generators/rugui/templates/config/boot.rb', line 58

def load_rugui
  require 'rugui'
rescue Gem::LoadError
  $stderr.puts %(Missing the RuGUI gem. Please `gem install rugui`.)
  exit 1
end