Class: Vagrant::Boxen::Modules::Memcached

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/vagrant-boxen/modules/memcached.rb

Defined Under Namespace

Modules: Config

Instance Method Summary collapse

Constructor Details

#initialize(options = nil, &options_block) ⇒ Memcached

Returns a new instance of Memcached.



11
12
13
14
# File 'lib/vagrant-boxen/modules/memcached.rb', line 11

def initialize(options = nil, &options_block)
  options = build_options([:memory], options, &options_block)
  @options = { :max_memory => options.fetch(:memory, '25') }
end

Instance Method Details

#build_manifestObject



16
17
18
# File 'lib/vagrant-boxen/modules/memcached.rb', line 16

def build_manifest
  "class { 'memcached': #{puppet_options}}"
end