Class: Avm::Git::Scms::GitSubtree
- Inherits:
-
GitSubBase
- Object
- Scms::Base
- GitSubBase
- Avm::Git::Scms::GitSubtree
- Defined in:
- lib/avm/git/scms/git_subtree.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
12 13 14 |
# File 'lib/avm/git/scms/git_subtree.rb', line 12 def update # Do nothing end |
#valid? ⇒ Boolean
16 17 18 19 20 21 22 |
# File 'lib/avm/git/scms/git_subtree.rb', line 16 def valid? return false unless ::Avm::Git::Scms::Provider .new.all.any? { |scm_class| parent_scm.is_a?(scm_class) } (::Avm::Git::Scms::Provider.new.all - [self.class]) .lazy.map { |scm_class| scm_class.new(path) }.none?(&:valid?) end |