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
252 253 254 255 256 257 258 259 260 |
# File 'lib/git_cli.rb', line 252 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.
250 251 252 |
# File 'lib/git_cli.rb', line 250 def name @name end |
#sslVerify ⇒ Object (readonly)
Returns the value of attribute sslVerify.
249 250 251 |
# File 'lib/git_cli.rb', line 249 def sslVerify @sslVerify end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
250 251 252 |
# File 'lib/git_cli.rb', line 250 def url @url end |
Instance Method Details
#is_fetch_supported? ⇒ Boolean Also known as: can_fetch?
269 270 271 |
# File 'lib/git_cli.rb', line 269 def is_fetch_supported? @fetch end |
#is_push_supported? ⇒ Boolean Also known as: can_push?
277 278 279 |
# File 'lib/git_cli.rb', line 277 def is_push_supported? @push end |
#ssl_verify(bool) ⇒ Object
262 263 264 |
# File 'lib/git_cli.rb', line 262 def ssl_verify(bool) @sslVerify = bool end |
#support_fetch ⇒ Object
266 267 268 |
# File 'lib/git_cli.rb', line 266 def support_fetch @fetch = true end |
#support_push ⇒ Object
274 275 276 |
# File 'lib/git_cli.rb', line 274 def support_push @push = true end |