Harry S
Harry S
Implementation could be as simple as force-forgetting the package receipt for the agent if hubcli is missing.
I think as simple as `ws1_forget_package! if ws1_hubcli_missing` works. But I'm not sure if I want this to happen all the time. I can be timid about installing packages in...
Also while we're here I think the `ws1_` should be refactored to be a class. I'll open a separate issue/PR if you're interested. Ie: ```ruby class Chef class Node def...
Yes @natewalck I was just saying to myself that I'm making `Node` a god class. Going down the route, one might end up accidentally managing machine state through the node...
I think hewing to an established chef patten would be ideal (I feel that `cpe_profiles` and `cpe_launchd` have flawed designs). Starting here: https://blog.chef.io/writing-libraries-in-chef-cookbooks/ - ```ruby # Not a fan of...
This is something that I'm playing with for an internal recipe: ```ruby # libraries/eng_helpers.rb include Chef::Mixin::ShellOut module EngineeringHelpers def self.sdk_path shell_out!("/usr/bin/xcrun --show-sdk-path").stdout.strip end end class Chef class Resource def eng_helpers...