Sha256: 3c990da6b0903906c6648f39c296cf3f68b8bd7a5521877a06ab7bc79fb15f42

Contents?: true

Size: 520 Bytes

Versions: 2

Compression:

Stored size: 520 Bytes

Contents

module Elasticity

  module JobFlowStep

    def to_aws_step(jobflow_step)
      raise RuntimeError, '#to_aws_step is required to be defined on all job flow steps.'
    end

    module ClassMethods

      def requires_installation?
        false
      end

      def aws_installation_step
        raise RuntimeError, '.aws_installation_step is required to be defined when a step requires installation (e.g. Pig, Hive).'
      end

    end

    def self.included(base)
      base.extend(ClassMethods)
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
elasticity-2.1 lib/elasticity/job_flow_step.rb
elasticity-2.0 lib/elasticity/job_flow_step.rb