Class: Indocker::Repositories::NoSync
- Defined in:
- lib/indocker/repositories/no_sync.rb
Instance Attribute Summary collapse
-
#root_path ⇒ Object
readonly
Returns the value of attribute root_path.
Attributes inherited from Abstract
Instance Method Summary collapse
Methods inherited from Abstract
#initialize, #is_git?, #is_local?, #is_no_sync?
Methods included from Concerns::Inspectable
Constructor Details
This class inherits a constructor from Indocker::Repositories::Abstract
Instance Attribute Details
#root_path ⇒ Object (readonly)
Returns the value of attribute root_path.
2 3 4 |
# File 'lib/indocker/repositories/no_sync.rb', line 2 def root_path @root_path end |
Instance Method Details
#clone_path ⇒ Object
17 18 19 |
# File 'lib/indocker/repositories/no_sync.rb', line 17 def clone_path root_path end |
#project_name ⇒ Object
9 10 11 |
# File 'lib/indocker/repositories/no_sync.rb', line 9 def project_name root_path.split('/').last end |
#setup(root_path) ⇒ Object
4 5 6 7 |
# File 'lib/indocker/repositories/no_sync.rb', line 4 def setup(root_path) @root_path = File.(root_path) self end |