Class: Spaceship::Tunes::Tester

Inherits:
TunesBase
  • Object
show all
Defined in:
lib/pilot/tester_util.rb

Overview

monkey patched move this to spaceship

Instance Method Summary collapse

Instance Method Details

#full_versionObject



10
11
12
13
14
15
# File 'lib/pilot/tester_util.rb', line 10

def full_version
  return nil unless latest_install_date
  latest_installed_version = latest_installed_version_number
  latest_installed_short_version = latest_installed_build_number
  "#{latest_installed_version} (#{latest_installed_short_version})"
end

#pretty_install_dateObject



17
18
19
20
# File 'lib/pilot/tester_util.rb', line 17

def pretty_install_date
  return nil unless latest_install_date
  Time.at((latest_install_date / 1000)).strftime("%m/%d/%y %H:%M")
end