Class: Gvcs::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/git_cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



262
263
264
# File 'lib/git_cli.rb', line 262

def name
  @name
end

#sslVerifyObject (readonly)

Returns the value of attribute sslVerify.



261
262
263
# File 'lib/git_cli.rb', line 261

def sslVerify
  @sslVerify
end

#urlObject (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?

Returns:

  • (Boolean)


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?

Returns:

  • (Boolean)


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_fetchObject



278
279
280
# File 'lib/git_cli.rb', line 278

def support_fetch
  @fetch = true
end

#support_pushObject



286
287
288
# File 'lib/git_cli.rb', line 286

def support_push
  @push = true
end