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