def put_policy(name, rules)
      client.put("/v1/sys/policy/#{encode_path(name)}", JSON.fast_generate(
        rules: rules,
      ))
      return true
    end
def put_policy(name, rules)
      client.put("/v1/sys/policy/#{encode_path(name)}", JSON.fast_generate(
        rules: rules,
      ))
      return true
    end
Create a new policy with the given name and rules.

 @example
   policy = <<-EOH
     path "sys" {
       policy = "deny"
     }
   EOH
   Vault.sys.put_policy("dev", policy) #=> true

 It is recommend that you load policy rules from a file:

 @example
   policy = File.read("/path/to/my/policy.hcl")
   Vault.sys.put_policy("dev", policy)

 @param [String] name
   the name of the policy
 @param [String] rules
   the policy rules

 @return [true]