File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 44license 'MIT'
55description 'Installs/Configures memcached'
66long_description IO . read ( File . join ( File . dirname ( __FILE__ ) , 'README.md' ) )
7- version '13.3.2 '
7+ version '13.3.3 '
Original file line number Diff line number Diff line change 2424# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2525#
2626
27- package node [ " memcached" ] [ " package" ] do
27+ package node [ : memcached] [ : package] do
2828 action [ :install ]
2929end
3030
3131# Allows for memory percentage to be used
32- if node [ " memcached" ] [ " max_mem" ] . to_s . match ( "%" )
33- node . set [ :memcached ] [ :max_mem ] = ( ( node [ " memory" ] [ " total" ] . to_i / 1024 ) *( node [ " memcached" ] [ " max_mem" ] . to_i * 0.01 ) ) . to_i
32+ if node [ : memcached] [ : max_mem] . to_s . match ( "%" )
33+ node . set [ :memcached ] [ :max_mem ] = ( ( node [ : memory] [ : total] . to_i / 1024 ) *( node [ : memcached] [ : max_mem] . to_i * 0.01 ) ) . to_i
3434end
3535
36- template node [ " memcached" ] [ " config" ] do
36+ template node [ : memcached] [ : config] do
3737 source "memcached.conf.erb"
3838 mode "0644"
3939 owner "root"
4040 group "root"
41- notifies :restart , "service[#{ node [ " memcached" ] [ " service_name" ] } ]"
41+ notifies :restart , "service[#{ node [ : memcached] [ : service_name] } ]"
4242end
4343
44- service node [ " memcached" ] [ " service_name" ] do
44+ service node [ : memcached] [ : service_name] do
4545 action [ :enable , :start ]
4646end
You can’t perform that action at this time.
0 commit comments