Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Install the gem with redis
  • Loading branch information
bryanstearns committed Oct 21, 2010
1 parent 6017be0 commit e71298d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/genii/features/redis.rb
@@ -1,4 +1,6 @@
class Features::Redis < Feature
REDIS_GEM_VERSION = "2.0.11"

def create_dependencies
depends_on :packages => {
:names => %w[redis-server]
Expand All @@ -8,6 +10,12 @@ def create_dependencies
:content => monit_content
}

depends_on(:ruby_gem => {
:name => :redis,
:version => REDIS_GEM_VERSION
})\
if rvm

nothing_else_to_do!
end

Expand All @@ -23,4 +31,8 @@ def monit_content
"""
end

def rvm
@rvm ||= find_feature(:rvm, :anything)
end
end

0 comments on commit e71298d

Please sign in to comment.