class DaemonKit::Generators::RuoteGenerator
Protected Class Methods
source_root()
click to toggle source
# File lib/generators/daemon_kit/ruote/ruote_generator.rb, line 26 def self.source_root File.expand_path( File.join( File.dirname(__FILE__), 'templates') ) end
Public Instance Methods
create_configs()
click to toggle source
# File lib/generators/daemon_kit/ruote/ruote_generator.rb, line 12 def create_configs directory 'config' end
create_daemon()
click to toggle source
# File lib/generators/daemon_kit/ruote/ruote_generator.rb, line 20 def create_daemon directory 'libexec' end
create_lib()
click to toggle source
# File lib/generators/daemon_kit/ruote/ruote_generator.rb, line 16 def create_lib directory 'lib', nil, :force => true end
update_gemfile()
click to toggle source
# 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