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
- #is_push_supported? ⇒ Boolean
- #ssl_verify(bool) ⇒ Object
- #support_fetch ⇒ Object
- #support_push ⇒ Object
Constructor Details
#initialize(name, url) ⇒ Repository
attr_accessor :branches
232 233 234 235 236 237 238 239 240 |
# File 'lib/git_cli.rb', line 232 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.
230 231 232 |
# File 'lib/git_cli.rb', line 230 def name @name end |
#sslVerify ⇒ Object (readonly)
Returns the value of attribute sslVerify.
229 230 231 |
# File 'lib/git_cli.rb', line 229 def sslVerify @sslVerify end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
230 231 232 |
# File 'lib/git_cli.rb', line 230 def url @url end |
Instance Method Details
#is_fetch_supported? ⇒ Boolean
249 250 251 |
# File 'lib/git_cli.rb', line 249 def is_fetch_supported? @fetch end |
#is_push_supported? ⇒ Boolean
256 257 258 |
# File 'lib/git_cli.rb', line 256 def is_push_supported? @push end |
#ssl_verify(bool) ⇒ Object
242 243 244 |
# File 'lib/git_cli.rb', line 242 def ssl_verify(bool) @sslVerify = bool end |
#support_fetch ⇒ Object
246 247 248 |
# File 'lib/git_cli.rb', line 246 def support_fetch @fetch = true end |
#support_push ⇒ Object
253 254 255 |
# File 'lib/git_cli.rb', line 253 def support_push @push = true end |