Sha256: 50f91c98fe34970ab4dd4034c3c404f537da5f6762948449a23153ea4f4f90bf
Contents?: true
Size: 427 Bytes
Versions: 1
Compression:
Stored size: 427 Bytes
Contents
module Napkin module Version extend self attr_accessor :base_dir def write_version( version ) File.open(File.join(Napkin::Version.base_dir, 'VERSION'), 'w') do |file| file.write version.to_s end version end def load_version Versionomy.parse File.read(File.join(Napkin::Version.base_dir, 'VERSION')).chomp end def to_s load_version.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-napkin-3.0.4 | lib/capistrano/napkin/version.rb |