def generate_artifacts(context = {})
      @cmd = context['cmd']
      @cmd_args = context['cmd_args'] || []
      @config = Chef::Config.merge!(@cmd.config)
      return unless @cmd && cookbook_path
      run_create_cookbook
      create_attr_file(
        cookbook_path,
        cookbook_contents
      )
    end
def generate_artifacts(context = {})
      @cmd = context['cmd']
      @cmd_args = context['cmd_args'] || []
      @config = Chef::Config.merge!(@cmd.config)
      return unless @cmd && cookbook_path
      run_create_cookbook
      create_attr_file(
        cookbook_path,
        cookbook_contents
      )
    end
generate attributes to cookbook
 context['cmd'] must be calling command
 context['cmd_args'] must be calling command's args