Class: GitCli::Repository
- Inherits:
-
Object
- Object
- GitCli::Repository
- Defined in:
- lib/git_cli.rb
Overview
class Gvcs::Repository
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
307 308 309 310 311 312 313 314 315 |
# File 'lib/git_cli.rb', line 307 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.
305 306 307 |
# File 'lib/git_cli.rb', line 305 def name @name end |
#sslVerify ⇒ Object (readonly)
Returns the value of attribute sslVerify.
304 305 306 |
# File 'lib/git_cli.rb', line 304 def sslVerify @sslVerify end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
305 306 307 |
# File 'lib/git_cli.rb', line 305 def url @url end |
Instance Method Details
#is_fetch_supported? ⇒ Boolean Also known as: can_fetch?
324 325 326 |
# File 'lib/git_cli.rb', line 324 def is_fetch_supported? @fetch end |
#is_push_supported? ⇒ Boolean Also known as: can_push?
332 333 334 |
# File 'lib/git_cli.rb', line 332 def is_push_supported? @push end |
#ssl_verify(bool) ⇒ Object
317 318 319 |
# File 'lib/git_cli.rb', line 317 def ssl_verify(bool) @sslVerify = bool end |
#support_fetch ⇒ Object
321 322 323 |
# File 'lib/git_cli.rb', line 321 def support_fetch @fetch = true end |
#support_push ⇒ Object
329 330 331 |
# File 'lib/git_cli.rb', line 329 def support_push @push = true end |