Method: TreasureData::Updater::ModuleDefinition#client_version_from_path
- Defined in:
- lib/td/updater.rb
#client_version_from_path(path) ⇒ Object
63 64 65 66 67 68 69 |
# File 'lib/td/updater.rb', line 63 def client_version_from_path(path) if version_file = get_client_version_file(path) File.read(version_file).match(/TOOLBELT_VERSION = '([^']+)'/)[1] else '0.0.0' end end |