@@ -89,22 +89,22 @@ def rc_add(service, rcvar, yesno)
89
89
append = "\# Added by Puppet\n #{ rcvar } _enable=\" #{ yesno } \" \n "
90
90
# First, try the one-file-per-service style
91
91
if Puppet ::FileSystem . exist? ( rcconf_dir )
92
- File . open ( rcconf_dir + "/#{ service } " , File ::WRONLY | File ::APPEND | File ::CREAT , 0644 ) {
93
- | f | f << append
94
- self . debug ( "Appended to #{ f . path } " )
92
+ File . open ( rcconf_dir + "/#{ service } " , File ::WRONLY | File ::APPEND | File ::CREAT , 0644 ) { | f |
93
+ f << append
94
+ self . debug ( "Appended to #{ f . path } " )
95
95
}
96
96
else
97
97
# Else, check the local rc file first, but don't create it
98
98
if Puppet ::FileSystem . exist? ( rcconf_local )
99
- File . open ( rcconf_local , File ::WRONLY | File ::APPEND ) {
100
- | f | f << append
101
- self . debug ( "Appended to #{ f . path } " )
99
+ File . open ( rcconf_local , File ::WRONLY | File ::APPEND ) { | f |
100
+ f << append
101
+ self . debug ( "Appended to #{ f . path } " )
102
102
}
103
103
else
104
104
# At last use the standard rc.conf file
105
- File . open ( rcconf , File ::WRONLY | File ::APPEND | File ::CREAT , 0644 ) {
106
- | f | f << append
107
- self . debug ( "Appended to #{ f . path } " )
105
+ File . open ( rcconf , File ::WRONLY | File ::APPEND | File ::CREAT , 0644 ) { | f |
106
+ f << append
107
+ self . debug ( "Appended to #{ f . path } " )
108
108
}
109
109
end
110
110
end
0 commit comments