Class: Vagrant::Boxen::Modules::Redis
- Inherits:
-
Object
- Object
- Vagrant::Boxen::Modules::Redis
- Includes:
- BaseModule
- Defined in:
- lib/vagrant-boxen/modules/redis.rb
Defined Under Namespace
Modules: Config
Instance Method Summary collapse
- #build_manifest ⇒ Object
-
#initialize(options = nil, &options_block) ⇒ Redis
constructor
A new instance of Redis.
Constructor Details
#initialize(options = nil, &options_block) ⇒ Redis
Returns a new instance of Redis.
13 14 15 16 17 18 19 |
# File 'lib/vagrant-boxen/modules/redis.rb', line 13 def initialize( = nil, &) = ([:memory, :port], , &) @options = { :redis_max_memory => .fetch(:memory, '5mb'), :redis_port => [:port] } end |
Instance Method Details
#build_manifest ⇒ Object
21 22 23 |
# File 'lib/vagrant-boxen/modules/redis.rb', line 21 def build_manifest "class { 'redis': #{}}" end |