Class: DaemonKit::GemBoot

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

Instance Method Summary collapse

Methods inherited from Boot

#run

Instance Method Details

#load_initializerObject



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/generators/daemon_kit/app/templates/config/boot.rb', line 50

def load_initializer
  begin
    require 'rubygems' unless defined?( ::Gem )
    gem 'daemon-kit'
    require 'daemon_kit/initializer'
  rescue ::Gem::LoadError => e
    msg = <<EOF

You are missing the daemon-kit gem. Please install the following gem:

sudo gem install daemon-kit

EOF
    $stderr.puts msg
    exit 1
  end
end