Skip to content

Commit

Permalink
removed host option and fixed source path
Browse files Browse the repository at this point in the history
  • Loading branch information
nu7hatch committed Jan 13, 2011
1 parent c182740 commit 3e22e36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/redis/generators.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Generators
class Base < Rails::Generators::NamedBase

def self.source_root
@_redis_aid_source_root ||= File.expand_path(File.join("../generators/", generator_name, 'templates'))
@_redis_aid_source_root ||= File.expand_path(File.join("../generators/", generator_name, 'templates'), __FILE__)
end

end # Base
Expand Down
2 changes: 1 addition & 1 deletion lib/redis/generators/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Redis
module Generators
class InstallGenerator < Base

class_option :host, :type => :string, :required => false, :default => 'localhost', :desc => "Name of the Redis host use"
#class_option :host, :type => :string, :required => false, :default => 'localhost', :desc => "Name of the Redis host use"

def create_files
template 'redis.yml.tt', "config/redis.yml"
Expand Down

0 comments on commit 3e22e36

Please sign in to comment.