Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookstyle Bot Auto Corrections with Cookstyle 7.31.1 #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions metadata.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name 'redis'
maintainer 'The Authors'
maintainer_email '[email protected]'
license 'all_rights'
license 'all rights reserved'
description 'Installs/Configures redis'
long_description 'Installs/Configures redis'
version '0.1.0'
38 changes: 19 additions & 19 deletions recipes/default.rb
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
#
# Cookbook Name:: redis
# Cookbook:: redis
# Recipe:: default
#
# Copyright (c) 2016 The Authors, All Rights Reserved.
# Copyright:: (c) 2016 The Authors, All Rights Reserved.
#
# Translated Instructions From:
# https://www.digitalocean.com/community/tutorials/how-to-install-and-use-redis
#

execute "apt-get update"
execute 'apt-get update'

package "build-essential"
package 'build-essential'

package "tcl8.5"
package 'tcl8.5'

remote_file "/tmp/redis-2.8.9.tar.gz" do
source "http://download.redis.io/releases/redis-2.8.9.tar.gz"
notifies :run, "execute[unzip_redis_archive]", :immediately
remote_file '/tmp/redis-2.8.9.tar.gz' do
source 'http://download.redis.io/releases/redis-2.8.9.tar.gz'
notifies :run, 'execute[unzip_redis_archive]', :immediately
end

execute "unzip_redis_archive" do
execute 'unzip_redis_archive' do
command 'tar xzf redis-2.8.9.tar.gz'
cwd "/tmp"
cwd '/tmp'
action :nothing
notifies :run, "execute[build_and_install_redis]", :immediately
notifies :run, 'execute[build_and_install_redis]', :immediately
end

execute "build_and_install_redis" do
execute 'build_and_install_redis' do
command 'make && make install'
cwd "/tmp/redis-2.8.9"
cwd '/tmp/redis-2.8.9'
action :nothing
notifies :run, "execute[install_server_redis]", :immediately
notifies :run, 'execute[install_server_redis]', :immediately
end

execute "install_server_redis" do
command "echo -n | ./install_server.sh"
cwd "/tmp/redis-2.8.9/utils"
execute 'install_server_redis' do
command 'echo -n | ./install_server.sh'
cwd '/tmp/redis-2.8.9/utils'
action :nothing
end

service "redis_6379" do
service 'redis_6379' do
action [ :start, :enable ]
# This is necessary so that the service will not keep reporting as updated
supports :status => true
supports status: true
end
4 changes: 2 additions & 2 deletions spec/unit/recipes/default_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
# Cookbook Name:: redis
# Cookbook:: redis
# Spec:: default
#
# Copyright (c) 2016 The Authors, All Rights Reserved.
# Copyright:: (c) 2016 The Authors, All Rights Reserved.

require 'spec_helper'

Expand Down