From f0f472306fb6730f47d040557a8b168bbcf0ac41 Mon Sep 17 00:00:00 2001 From: miya0001 Date: Sat, 21 Feb 2015 02:03:40 +0900 Subject: [PATCH] cast attr vlues from int to str --- provision/site-cookbooks/wpcli/recipes/install.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provision/site-cookbooks/wpcli/recipes/install.rb b/provision/site-cookbooks/wpcli/recipes/install.rb index f60e00a..7e998f5 100644 --- a/provision/site-cookbooks/wpcli/recipes/install.rb +++ b/provision/site-cookbooks/wpcli/recipes/install.rb @@ -64,7 +64,7 @@ WP_CLI_CONFIG_PATH=#{Shellwords.shellescape(node[:wpcli][:config_path])} wp core download \\ --path=#{File.join(node[:wpcli][:wp_docroot], node[:wpcli][:wp_siteurl])} \\ --locale=#{Shellwords.shellescape(node[:wpcli][:locale])} \\ ---version=#{Shellwords.shellescape(node[:wpcli][:wp_version])} \\ +--version=#{Shellwords.shellescape(node[:wpcli][:wp_version].to_s)} \\ --force EOH end @@ -203,7 +203,7 @@ user node[:wpcli][:user] group node[:wpcli][:group] cwd File.join(node[:wpcli][:wp_docroot], node[:wpcli][:wp_siteurl]) - code "WP_CLI_CONFIG_PATH=#{Shellwords.shellescape(node[:wpcli][:config_path])} wp option update #{Shellwords.shellescape(key)} #{Shellwords.shellescape(value)}" + code "WP_CLI_CONFIG_PATH=#{Shellwords.shellescape(node[:wpcli][:config_path])} wp option update #{Shellwords.shellescape(key.to_s)} #{Shellwords.shellescape(value.to_s)}" end end