Class: Phase::Deploy::Version
- Inherits:
-
Object
- Object
- Phase::Deploy::Version
- Defined in:
- lib/phase/kit/deploy/version.rb
Class Method Summary collapse
Class Method Details
.current ⇒ Object
7 8 9 |
# File 'lib/phase/kit/deploy/version.rb', line 7 def current ::File.read( ::Phase.config.deploy.version_lockfile ).chomp rescue nil end |
.next ⇒ Object
11 12 13 |
# File 'lib/phase/kit/deploy/version.rb', line 11 def next current.to_i + 1 end |
.update(new_version) ⇒ Object
15 16 17 |
# File 'lib/phase/kit/deploy/version.rb', line 15 def update(new_version) write_version(new_version) end |