Skip to content

Commit

Permalink
Updates based on feedback from foodcritic:
Browse files Browse the repository at this point in the history
  * FC024: Consider adding platform equivalents
  * http://acrmp.github.com/foodcritic/\#FC024
  • Loading branch information
nathenharvey committed Apr 1, 2012
1 parent 73bb989 commit e94754e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions recipes/client.rb
Expand Up @@ -19,7 +19,7 @@
require_recipe "percona-install" require_recipe "percona-install"


case node["platform"] case node["platform"]
when "redhat","centos","fedora","suse" when "redhat","centos","fedora","suse", "amazon", "scientific"
package "Percona-Server-client-55" package "Percona-Server-client-55"
package "Percona-Server-devel-55" package "Percona-Server-devel-55"
when "debian","ubuntu" when "debian","ubuntu"
Expand All @@ -29,4 +29,4 @@


package "percona-server-client-5.5" package "percona-server-client-5.5"
package "libmysqlclient-dev" package "libmysqlclient-dev"
end end
2 changes: 1 addition & 1 deletion recipes/default.rb
Expand Up @@ -17,7 +17,7 @@
# #


case node["platform"] case node["platform"]
when "redhat","centos","fedora","suse" when "redhat","centos","fedora","suse", "amazon", "scientific"
arch = node["kernel"]["machine"] arch = node["kernel"]["machine"]
arch = "i386" unless arch == "x86_64" arch = "i386" unless arch == "x86_64"


Expand Down
4 changes: 2 additions & 2 deletions recipes/server.rb
Expand Up @@ -19,7 +19,7 @@
require_recipe "percona-install" require_recipe "percona-install"


case node["platform"] case node["platform"]
when "redhat","centos","fedora","suse" when "redhat","centos","fedora","suse", "amazon", "scientific"
execute "remove conflicting mysql-libs" do execute "remove conflicting mysql-libs" do
command "rpm -e --nodeps mysql-libs " command "rpm -e --nodeps mysql-libs "
end end
Expand Down Expand Up @@ -57,4 +57,4 @@
group "root" group "root"
mode 0600 mode 0600
end end
end end

0 comments on commit e94754e

Please sign in to comment.