Skip to content

Commit

Permalink
provide config/orogen/.cache as a cache directory for orogen configur…
Browse files Browse the repository at this point in the history
…ation files
  • Loading branch information
doudou committed Apr 25, 2018
1 parent cedf0a3 commit d35053c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/syskit/task_configuration_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ def reload
Array.new
end
end

# The cache directory used by the Syskit app to speed up configuration loading
def cache_dir
File.join(app.app_dir, 'config', 'orogen', '.cache')
end

def load_from_yaml(path, cache_dir: self.cache_dir)
FileUtils.mkdir_p self.cache_dir
super
end
end
end

0 comments on commit d35053c

Please sign in to comment.