Class: DaemonKit::Generators::RuoteGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/daemon_kit/ruote/ruote_generator.rb

Instance Method Summary collapse

Methods inherited from Base

desc

Instance Method Details

#create_configsObject



12
13
14
# File 'lib/generators/daemon_kit/ruote/ruote_generator.rb', line 12

def create_configs
  directory 'config'
end

#create_daemonObject



20
21
22
# File 'lib/generators/daemon_kit/ruote/ruote_generator.rb', line 20

def create_daemon
  directory 'libexec'
end

#create_libObject



16
17
18
# File 'lib/generators/daemon_kit/ruote/ruote_generator.rb', line 16

def create_lib
  directory 'lib', nil, :force => true
end

#update_gemfileObject



5
6
7
8
9
10
# File 'lib/generators/daemon_kit/ruote/ruote_generator.rb', line 5

def update_gemfile
  append_file 'Gemfile', "\n# Only needed if running the AMQP participant/listener pair\n"
  append_file 'Gemfile', "gem 'amqp'\n"
  append_file 'Gemfile', "# Can be replaced with json_pure\n"
  append_file 'Gemfile', "gem 'json'\n"
end