<commit_before>include_recipe "php"
include_recipe "php::composer"
include_recipe "curl"

dir = node['php']['composer']['dir']
bin = node['php']['composer']['bin']

execute "Install wp-cli" do
  action :run
  cwd dir
  command "#{bin} require --prefer-source wp-cli/wp-cli=@dev"
  not_if { system node['wordpress']['bin'] }
end<commit_msg>Idempotency guard was opening a pager and stopping the chef-client run. Replaced it with a more passive guard.<commit_after>include_recipe "php"
include_recipe "php::composer"
include_recipe "curl"

dir = node['php']['composer']['dir']
bin = node['php']['composer']['bin']

execute "Install wp-cli" do
  action :run
  cwd dir
  command "#{bin} require --prefer-source wp-cli/wp-cli=@dev"
  not_if { system "#{node['wordpress']['bin']} --version" }
end
{'fraction_non_alphanumeric': 0.17468354430379746, 'fraction_numerical': 0.0, 'mean_word_length': 5.703389830508475, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2924200', 'n_tokens_mistral': 275, 'n_tokens_neox': 269, 'n_words': 71}