Make name a public method so it can be used to figure out the filename for project
Project: http://git-wip-us.apache.org/repos/asf/buildr/repo Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/b3528c93 Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/b3528c93 Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/b3528c93 Branch: refs/heads/master Commit: b3528c931a35c41b2742224ae20312515d883929 Parents: c9fa91b Author: Peter Donald <[email protected]> Authored: Sat May 3 15:00:58 2014 +1000 Committer: Peter Donald <[email protected]> Committed: Sat May 3 15:00:58 2014 +1000 ---------------------------------------------------------------------- lib/buildr/ide/idea.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/buildr/blob/b3528c93/lib/buildr/ide/idea.rb ---------------------------------------------------------------------- diff --git a/lib/buildr/ide/idea.rb b/lib/buildr/ide/idea.rb index 1931a96..30a62af 100644 --- a/lib/buildr/ide/idea.rb +++ b/lib/buildr/ide/idea.rb @@ -56,12 +56,12 @@ module Buildr #:nodoc: document.write(f, -1, false, true) end - protected - def name "#{self.id}#{suffix}" end + protected + def relative(path) ::Buildr::Util.relative_path(File.expand_path(path.to_s), self.base_directory) end
