Sha256: 57b07a3ed7364dde74f408acbcd30cf1329f9dd4943626cc1512761e490706e4

Contents?: true

Size: 878 Bytes

Versions: 89

Compression:

Stored size: 878 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."
    raise StandardError, "Deprecated call to #{call} - #{replacement}", caller
  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

89 entries across 89 versions & 1 rubygems

Version Path
ironfan-6.1.9 lib/ironfan/deprecated.rb
ironfan-6.0.9 lib/ironfan/deprecated.rb
ironfan-6.1.7 lib/ironfan/deprecated.rb
ironfan-6.1.6 lib/ironfan/deprecated.rb
ironfan-6.0.8 lib/ironfan/deprecated.rb
ironfan-6.1.5 lib/ironfan/deprecated.rb
ironfan-6.1.4 lib/ironfan/deprecated.rb
ironfan-6.1.3 lib/ironfan/deprecated.rb
ironfan-6.1.0 lib/ironfan/deprecated.rb
ironfan-6.0.7 lib/ironfan/deprecated.rb
ironfan-5.0.11 lib/ironfan/deprecated.rb
ironfan-6.0.6 lib/ironfan/deprecated.rb
ironfan-6.0.5 lib/ironfan/deprecated.rb
ironfan-6.0.4 lib/ironfan/deprecated.rb
ironfan-6.0.3 lib/ironfan/deprecated.rb
ironfan-6.0.1 lib/ironfan/deprecated.rb
ironfan-6.0.0 lib/ironfan/deprecated.rb
ironfan-5.0.10 lib/ironfan/deprecated.rb
ironfan-5.0.8 lib/ironfan/deprecated.rb
ironfan-5.0.5 lib/ironfan/deprecated.rb