Class: StiDeploy::Version::PreRelease

Inherits:
VersionBumper show all
Defined in:
lib/sti_deploy/version/pre_release.rb

Instance Attribute Summary

Attributes inherited from VersionBumper

#version

Instance Method Summary collapse

Methods inherited from VersionBumper

from_deploy_type, #initialize

Constructor Details

This class inherits a constructor from StiDeploy::Version::VersionBumper

Instance Method Details

#bumpObject



6
7
8
9
10
11
# File 'lib/sti_deploy/version/pre_release.rb', line 6

def bump
  version.minor += 1 if version.pre.zero?
  version.hotfix = 0
  version.pre += 1
  version.rc = 0
end