Class: Dev::Git::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/firespring_dev_commands/git.rb

Overview

Config object for setting top level git config options

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



13
14
15
16
17
18
19
# File 'lib/firespring_dev_commands/git.rb', line 13

def initialize
  self.main_branch = DEFAULT_MAIN_BRANCH
  self.staging_branch = nil
  self.info = [Dev::Git::Info.new(DEV_COMMANDS_PROJECT_NAME, DEV_COMMANDS_ROOT_DIR)]
  self.min_version = nil
  self.max_version = nil
end

Instance Attribute Details

#infoObject

Returns the value of attribute info

Returns:

  • (Object)

    the current value of info



12
13
14
# File 'lib/firespring_dev_commands/git.rb', line 12

def info
  @info
end

#main_branchObject

Returns the value of attribute main_branch

Returns:

  • (Object)

    the current value of main_branch



12
13
14
# File 'lib/firespring_dev_commands/git.rb', line 12

def main_branch
  @main_branch
end

#max_versionObject

Returns the value of attribute max_version

Returns:

  • (Object)

    the current value of max_version



12
13
14
# File 'lib/firespring_dev_commands/git.rb', line 12

def max_version
  @max_version
end

#min_versionObject

Returns the value of attribute min_version

Returns:

  • (Object)

    the current value of min_version



12
13
14
# File 'lib/firespring_dev_commands/git.rb', line 12

def min_version
  @min_version
end

#staging_branchObject

Returns the value of attribute staging_branch

Returns:

  • (Object)

    the current value of staging_branch



12
13
14
# File 'lib/firespring_dev_commands/git.rb', line 12

def staging_branch
  @staging_branch
end