class RakeSharedContext
Constants
- VERSION
Public Class Methods
rake_dir()
click to toggle source
# File lib/rake_shared_context.rb, line 23 def rake_dir return @rake_dir if @rake_dir root_dir.join('lib', 'tasks') end
rake_dir=(dir)
click to toggle source
# File lib/rake_shared_context.rb, line 29 def rake_dir=(dir) @rake_dir = Pathname.new(dir) end
root_dir()
click to toggle source
# File lib/rake_shared_context.rb, line 7 def root_dir return @root_dir if @root_dir if defined? Rails Rails.root elsif defined? Padrino Pathname.new(Padrino.root) else Pathname.pwd end end
root_dir=(dir)
click to toggle source
# File lib/rake_shared_context.rb, line 19 def root_dir=(dir) @root_dir = Pathname.new(dir) end