Sha256: 810df0d9916dbf9306c97406d03c805888b4ac63ed0046457742bd37edbba470

Contents?: true

Size: 578 Bytes

Versions: 3

Compression:

Stored size: 578 Bytes

Contents

module DaemonKit
  module Generators
    class RuoteGenerator < Base

      def update_gemfile
        append_file 'Gemfile', "gem 'amqp'"
        append_file 'Gemfile', "gem 'json' # Can be replaced with json_pure"
      end

      def create_configs
        directory 'config'
      end

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

      def create_daemon
        directory 'libexec'
      end

      protected

      def self.source_root
        File.expand_path( File.join( File.dirname(__FILE__), 'templates') )
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
daemon-kit-0.1.8rc2 lib/generators/daemon_kit/ruote/ruote_generator.rb
daemon-kit-0.1.8rc1 lib/generators/daemon_kit/ruote/ruote_generator.rb
daemon-kit-0.1.8pre lib/generators/daemon_kit/ruote/ruote_generator.rb