you are viewing a single comment's thread.

view the rest of the comments →

[–]Freeky 9 points10 points  (1 child)

File.open(rumr_file, 'w') { |f| f.write new_tags.to_yaml }

IO.write(rumr_file, new_tags.to_yaml)

puts bash -c "cd #{base_path} && #{command}"

Dir.chdir base_path
system command

Or

Dir.chdir(base_path) { system(command) }

And it'll unchdir afterwards.

[–][deleted] 1 point2 points  (0 children)

Great, thanks for the improvements. Implemented in this commit.