Class: Dev::Git::Config
- Defined in:
- lib/firespring_dev_commands/git.rb
Overview
Config object for setting top level git config options
Instance Attribute Summary collapse
-
#info ⇒ Object
Returns the value of attribute info.
-
#main_branch ⇒ Object
Returns the value of attribute main_branch.
-
#max_version ⇒ Object
Returns the value of attribute max_version.
-
#min_version ⇒ Object
Returns the value of attribute min_version.
-
#staging_branch ⇒ Object
Returns the value of attribute staging_branch.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
12 13 14 15 16 17 18 |
# File 'lib/firespring_dev_commands/git.rb', line 12 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
#info ⇒ Object
Returns the value of attribute info
11 12 13 |
# File 'lib/firespring_dev_commands/git.rb', line 11 def info @info end |
#main_branch ⇒ Object
Returns the value of attribute main_branch
11 12 13 |
# File 'lib/firespring_dev_commands/git.rb', line 11 def main_branch @main_branch end |
#max_version ⇒ Object
Returns the value of attribute max_version
11 12 13 |
# File 'lib/firespring_dev_commands/git.rb', line 11 def max_version @max_version end |
#min_version ⇒ Object
Returns the value of attribute min_version
11 12 13 |
# File 'lib/firespring_dev_commands/git.rb', line 11 def min_version @min_version end |
#staging_branch ⇒ Object
Returns the value of attribute staging_branch
11 12 13 |
# File 'lib/firespring_dev_commands/git.rb', line 11 def staging_branch @staging_branch end |