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



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

#nameObject (readonly)

Returns the value of attribute name.



230
231
232
# File 'lib/git_cli.rb', line 230

def name
  @name
end

#sslVerifyObject (readonly)

Returns the value of attribute sslVerify.



229
230
231
# File 'lib/git_cli.rb', line 229

def sslVerify
  @sslVerify
end

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

Returns:

  • (Boolean)


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

def is_fetch_supported?
  @fetch
end

#is_push_supported?Boolean

Returns:

  • (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_fetchObject



246
247
248
# File 'lib/git_cli.rb', line 246

def support_fetch
  @fetch = true
end

#support_pushObject



253
254
255
# File 'lib/git_cli.rb', line 253

def support_push
  @push = true
end