Class: Grit::Blob
- Inherits:
-
Object
- Object
- Grit::Blob
- Defined in:
- lib/grit_adapter/git_layer_grit.rb
Instance Method Summary collapse
Instance Method Details
#is_symlink ⇒ Object
395 396 397 |
# File 'lib/grit_adapter/git_layer_grit.rb', line 395 def is_symlink self.mode == 0120000 end |
#symlink_target(base_path = nil) ⇒ Object
399 400 401 402 403 404 405 406 |
# File 'lib/grit_adapter/git_layer_grit.rb', line 399 def symlink_target(base_path = nil) target = self.data new_path = File.(File.join('..', target), base_path) if File.file? new_path return new_path end end |