Sha256: 7e4abcd7d61aa27ed1a73bfe69725e1f368b9fcd0d7234c6ad7afde96a48f74a

Contents?: true

Size: 672 Bytes

Versions: 13

Compression:

Stored size: 672 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module Avm
  module LocalProjects
    module Jobs
      class Update
        enable_console_speaker
        common_constructor :instance

        def run
          instance.stereotypes.each { |stereotype| run_stereotype(stereotype) }
        end

        private

        def run_stereotype(stereotype)
          if stereotype.update_class.present?
            puts stereotype.label + ': update class found. Running...'
            stereotype.update_class.new(instance).run
          else
            puts stereotype.label + ': update class not found'
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
avm-tools-0.66.0 lib/avm/local_projects/jobs/update.rb
avm-tools-0.65.0 lib/avm/local_projects/jobs/update.rb
avm-tools-0.64.2 lib/avm/local_projects/jobs/update.rb
avm-tools-0.64.1 lib/avm/local_projects/jobs/update.rb
avm-tools-0.64.0 lib/avm/local_projects/jobs/update.rb
avm-tools-0.63.0 lib/avm/local_projects/jobs/update.rb
avm-tools-0.62.4 lib/avm/local_projects/jobs/update.rb
avm-tools-0.62.3 lib/avm/local_projects/jobs/update.rb
avm-tools-0.62.2 lib/avm/local_projects/jobs/update.rb
avm-tools-0.62.1 lib/avm/local_projects/jobs/update.rb
avm-tools-0.62.0 lib/avm/local_projects/jobs/update.rb
avm-tools-0.61.0 lib/avm/local_projects/jobs/update.rb
avm-tools-0.60.0 lib/avm/local_projects/jobs/update.rb