diff --git a/attributes/default.rb b/attributes/default.rb index 77e90db..e660c6c 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -1,3 +1,4 @@ +# encoding: utf-8 # # Cookbook Name:: ssh-hardening # Attributes:: default diff --git a/recipes/client.rb b/recipes/client.rb index b5a9c4a..47b69c4 100644 --- a/recipes/client.rb +++ b/recipes/client.rb @@ -1,3 +1,4 @@ +# encoding: utf-8 # # Cookbook Name:: ssh-hardening # Recipe:: ssh_client.rb diff --git a/recipes/default.rb b/recipes/default.rb index c52116c..8a4e128 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -1,3 +1,4 @@ +# encoding: utf-8 # # Cookbook Name:: ssh-hardening # Recipe:: default.rb diff --git a/recipes/server.rb b/recipes/server.rb index 5c97f42..f3aedcf 100644 --- a/recipes/server.rb +++ b/recipes/server.rb @@ -1,3 +1,4 @@ +# encoding: utf-8 # # Cookbook Name:: ssh-hardening # Recipe:: ssh_server.rb @@ -59,7 +60,7 @@ def get_key_from(field) owner 'root' group 'root' variables( - :keys => keys + keys: keys ) only_if { !keys.empty? } end