Class: Dolt::View::SubmoduleUrl::GitSshMountPoint
- Inherits:
-
Object
- Object
- Dolt::View::SubmoduleUrl::GitSshMountPoint
- Defined in:
- lib/libdolt/view/submodule_url.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
- #base_url ⇒ Object
-
#initialize(user, host) ⇒ GitSshMountPoint
constructor
A new instance of GitSshMountPoint.
Constructor Details
#initialize(user, host) ⇒ GitSshMountPoint
Returns a new instance of GitSshMountPoint.
84 85 86 87 |
# File 'lib/libdolt/view/submodule_url.rb', line 84 def initialize(user, host) @user = user @host = host end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
82 83 84 |
# File 'lib/libdolt/view/submodule_url.rb', line 82 def host @host end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
82 83 84 |
# File 'lib/libdolt/view/submodule_url.rb', line 82 def user @user end |
Instance Method Details
#base_url ⇒ Object
89 90 91 |
# File 'lib/libdolt/view/submodule_url.rb', line 89 def base_url "#{user}@#{host}:" end |