Class: BranchDb::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
# File 'lib/branch_db/configuration.rb', line 5

def initialize
  @main_branch = "main"
  @max_branch_length = 33
  @development_suffix = "_development"
  @test_suffix = "_test"
end

Instance Attribute Details

#development_suffixObject

Returns the value of attribute development_suffix.



3
4
5
# File 'lib/branch_db/configuration.rb', line 3

def development_suffix
  @development_suffix
end

#main_branchObject

Returns the value of attribute main_branch.



3
4
5
# File 'lib/branch_db/configuration.rb', line 3

def main_branch
  @main_branch
end

#max_branch_lengthObject

Returns the value of attribute max_branch_length.



3
4
5
# File 'lib/branch_db/configuration.rb', line 3

def max_branch_length
  @max_branch_length
end

#test_suffixObject

Returns the value of attribute test_suffix.



3
4
5
# File 'lib/branch_db/configuration.rb', line 3

def test_suffix
  @test_suffix
end