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
300 301 302 303 304 305 306 307 308 |
# File 'lib/git_cli.rb', line 300 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.
298 299 300 |
# File 'lib/git_cli.rb', line 298 def name @name end |
#sslVerify ⇒ Object (readonly)
Returns the value of attribute sslVerify.
297 298 299 |
# File 'lib/git_cli.rb', line 297 def sslVerify @sslVerify end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
298 299 300 |
# File 'lib/git_cli.rb', line 298 def url @url end |
Instance Method Details
#is_fetch_supported? ⇒ Boolean Also known as: can_fetch?
317 318 319 |
# File 'lib/git_cli.rb', line 317 def is_fetch_supported? @fetch end |
#is_push_supported? ⇒ Boolean Also known as: can_push?
325 326 327 |
# File 'lib/git_cli.rb', line 325 def is_push_supported? @push end |
#ssl_verify(bool) ⇒ Object
310 311 312 |
# File 'lib/git_cli.rb', line 310 def ssl_verify(bool) @sslVerify = bool end |
#support_fetch ⇒ Object
314 315 316 |
# File 'lib/git_cli.rb', line 314 def support_fetch @fetch = true end |
#support_push ⇒ Object
322 323 324 |
# File 'lib/git_cli.rb', line 322 def support_push @push = true end |