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



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

#nameObject (readonly)

Returns the value of attribute name.



250
251
252
# File 'lib/git_cli.rb', line 250

def name
  @name
end

#sslVerifyObject (readonly)

Returns the value of attribute sslVerify.



249
250
251
# File 'lib/git_cli.rb', line 249

def sslVerify
  @sslVerify
end

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

Returns:

  • (Boolean)


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?

Returns:

  • (Boolean)


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_fetchObject



266
267
268
# File 'lib/git_cli.rb', line 266

def support_fetch
  @fetch = true
end

#support_pushObject



274
275
276
# File 'lib/git_cli.rb', line 274

def support_push
  @push = true
end