Skip to content

Commit

Permalink
cast attr vlues from int to str
Browse files Browse the repository at this point in the history
  • Loading branch information
miya0001 committed Feb 20, 2015
1 parent c4d5526 commit f0f4723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provision/site-cookbooks/wpcli/recipes/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit f0f4723

Please sign in to comment.