search for: custom_attributes

Displaying 3 results from an estimated 3 matches for "custom_attributes".

2014 Feb 17
0
Custom policy executable
Hi, I'm trying to create an autosign policy which checks for a custom attribute in the CSR but I'm having some issue with the master not signing the request. My client has the following in /etc/puppet/csr_attributes.yaml custom_attributes: 1.2.840.113549.1.9.7: foo My policy is a simple bash script, in this case checking for foo #!/bin/bash CUSTOM_ATTR=$(echo "$(cat)" | grep "challengePassword" | awk -F ":" '{print$2}') if [[ "$CUSTOM_ATTR" == "foo" ]] then exit...
2006 Feb 22
0
model''s custom attributes not loaded if file is not in app/models/ folder, HELP!!
This has puzzled me for at least a week. please help. It seems that if a model class has any other custom attributes besides DB column attributes, and model class is not in /app/models/ folder, rails does not load custom attributes after 1st time, only DB column attributes. only way to see my custom attributes works is if model class has no module and is under /app/models/, not anywhere else.
2007 Dec 06
43
Mocks? Really?
OK, so i''ve played a bit with mocks and mock_models in controller and view tests and i have a question. Is this statement really correct: "We highly recommend that you exploit the mock framework here rather than providing real model objects in order to keep the view specs isolated from changes to your models." (http://rspec.rubyforge.org/documentation/rails/writing/views.html