Method: Snapshot::Runner#verify_helper_is_current
- Defined in:
- lib/snapshot/runner.rb
#verify_helper_is_current ⇒ Object
rubocop:disable Style/Next
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 |
# File 'lib/snapshot/runner.rb', line 277 def verify_helper_is_current current_version = version_of_bundled_helper UI.verbose "Checking that helper files contain #{current_version}" helper_files = Update.find_helper helper_files.each do |path| content = File.read(path) unless content.include?(current_version) UI.error "Your '#{path}' is outdated, please run `snapshot update`" UI.error "to update your Helper file" UI.user_error!("Please update your Snapshot Helper file") end end end |