dotpromo/danthes

View on GitHub
lib/generators/danthes/redis_install_generator.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'generators/danthes_generator'

module Danthes
  module Generators
    class RedisInstallGenerator < Base
      desc 'Create sample redis config file and add faye-redis gem to Gemfile'

      def copy_files
        template 'danthes_redis.yml', 'config/danthes_redis.yml'
      end

      def add_redis_gem
        add_gem 'faye-redis'
      end
    end
  end
end