Class: NCUpdater
- Inherits:
-
Object
- Object
- NCUpdater
- Defined in:
- lib/ncupdater.rb
Instance Method Summary collapse
-
#initialize(semver_path = 'test', remote_url = '', commands = '') ⇒ NCUpdater
constructor
A new instance of NCUpdater.
- #new_version? ⇒ Boolean
- #update ⇒ Object
Constructor Details
#initialize(semver_path = 'test', remote_url = '', commands = '') ⇒ NCUpdater
Returns a new instance of NCUpdater.
14 15 16 17 18 |
# 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 |
Instance Method Details
#new_version? ⇒ Boolean
28 29 30 |
# File 'lib/ncupdater.rb', line 28 def new_version? NCCheckVersion::new::check_for_updates(@semver_path, @remote_url) end |