class NCUpdater
Public Class Methods
new(semver_path = 'test', remote_url = '', commands = '')
click to toggle source
# File lib/ncupdater.rb, line 14 def initialize(semver_path = 'test', remote_url = '', commands = '') @semver_path = semver_path @remote_url = remote_url @commands = commands end
Public Instance Methods
new_version?()
click to toggle source
# File lib/ncupdater.rb, line 28 def new_version? NCCheckVersion::new::check_for_updates(@semver_path, @remote_url) end
update()
click to toggle source
# File lib/ncupdater.rb, line 20 def update if new_version? NCUpdate::new::update(@commands) else puts 'You are already on latest version..'.colorize(:yellow) end end