Sha256: 79f97a575dab844714becead1621f0dececcf317a3e5070248e2bd0d61567750

Contents?: true

Size: 815 Bytes

Versions: 7

Compression:

Stored size: 815 Bytes

Contents

module Ironfan
  def self.deprecated call, replacement=nil
    correction = ", " if replacement
    ui.error "The '#{call}' statement is deprecated#{correction} (in #{caller(2).first.inspect}). It looks like you are using an outdated DSL definition: please see https://github.com/infochimps-labs/ironfan/wiki/Upgrading-to-v4 for all the necessary upgrade steps."
    exit(1)
  end

  class Dsl
    class Cloud
      def defaults
        Ironfan.deprecated 'defaults'
      end
    end
    
    class Compute
      def cloud(provider=nil)
        if provider.nil?
          Ironfan.deprecated 'cloud(nil)','use cloud(:ec2) instead'
          provider = :ec2
        end
        super(provider)
      end
    end

    class Volume
      def defaults
        Ironfan.deprecated 'defaults'
      end
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ironfan-4.0.9 lib/ironfan/deprecated.rb
ironfan-4.0.8 lib/ironfan/deprecated.rb
ironfan-4.0.5 lib/ironfan/deprecated.rb
ironfan-4.0.4 lib/ironfan/deprecated.rb
ironfan-4.0.3 lib/ironfan/deprecated.rb
ironfan-4.0.2 lib/ironfan/deprecated.rb
ironfan-4.0.1 lib/ironfan/deprecated.rb