Class: Gvcs::Repository
- Inherits:
-
Object
- Object
- Gvcs::Repository
- Defined in:
- lib/git_cli.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#sslVerify ⇒ Object
readonly
Returns the value of attribute sslVerify.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(name, url) ⇒ Repository
constructor
attr_accessor :branches.
- #is_fetch_supported? ⇒ Boolean (also: #can_fetch?)
- #is_push_supported? ⇒ Boolean (also: #can_push?)
- #ssl_verify(bool) ⇒ Object
- #support_fetch ⇒ Object
- #support_push ⇒ Object
Constructor Details
#initialize(name, url) ⇒ Repository
attr_accessor :branches
264 265 266 267 268 269 270 271 272 |
# File 'lib/git_cli.rb', line 264 def initialize(name, url) #, branches = []) @name = name @url = url #@branches = branches @sslVerify = true @fetch = false @push = false end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
262 263 264 |
# File 'lib/git_cli.rb', line 262 def name @name end |
#sslVerify ⇒ Object (readonly)
Returns the value of attribute sslVerify.
261 262 263 |
# File 'lib/git_cli.rb', line 261 def sslVerify @sslVerify end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
262 263 264 |
# File 'lib/git_cli.rb', line 262 def url @url end |
Instance Method Details
#is_fetch_supported? ⇒ Boolean Also known as: can_fetch?
281 282 283 |
# File 'lib/git_cli.rb', line 281 def is_fetch_supported? @fetch end |
#is_push_supported? ⇒ Boolean Also known as: can_push?
289 290 291 |
# File 'lib/git_cli.rb', line 289 def is_push_supported? @push end |
#ssl_verify(bool) ⇒ Object
274 275 276 |
# File 'lib/git_cli.rb', line 274 def ssl_verify(bool) @sslVerify = bool end |
#support_fetch ⇒ Object
278 279 280 |
# File 'lib/git_cli.rb', line 278 def support_fetch @fetch = true end |
#support_push ⇒ Object
286 287 288 |
# File 'lib/git_cli.rb', line 286 def support_push @push = true end |