Hello there.
I'm trying to write my first very simple capistrano recipe that updates a 
value stored in a yml file.

The recipe is simple as:

task :update_locals do
  options_hash = { key1: value1 }
  File.open("#{current_path}/config/locals.yml", 'w+') {|f| 
f.write(options_hash.to_yaml) }
end

But when I run it I get 

`initialize': Input/output error - 
/home/userx/apps/appx/current/config/locals.yml (Errno::EIO)

Am I missing something?

I'm running ruby 1.9.3 and capistrano 2.14.1



Thanks for the help and have a good day.

-- 
-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to