Displaying 2 results from an estimated 2 matches for "name_underscore".
2012 Jul 25
3
manifest variable with sed - problem
...e in the variable $name
comes sometimes usernames like user.lastname, but i need for sudo
(includedir */etc/sudoers.d/*) file names with no dots (like user_lastname).
I need a new variable, where is the dots change by underscores.
My first try was like this, but it isn''t working well.
$name_underscore = "`echo $name | sed ''s/\./_/g''`"
file { "*/etc/sudoers.d/*${name_underscore}":
mode => 440,
owner => "root",
group => "root",
content => template("sudo/sudo.erb"),
}
Please can anyone help me wi...
2006 Jul 12
2
Can''t get observe_field to take a variable for a field name
The subject pretty much says it all: I can''t?get observe_field to take a
variable for a field name
I''ve tried:
<%= observe_field(var_name, ...
<%= observe_field("#{var_name}", ...
<%= observe_field(:"#{var_name}", ...
No luck.
Am I missing something?
Thanks,
: )
Jason
--
Posted via http://www.ruby-forum.com/.