Sha256: f967d024ccdab66a039b12c67efc550782ee032b61547a26b08574ed78c1ef78

Contents?: true

Size: 448 Bytes

Versions: 87

Compression:

Stored size: 448 Bytes

Contents

module Fog
  module Deprecation

    def deprecate(older, newer)
      class_eval <<-EOS, __FILE__, __LINE__
        def #{older}(*args)
          location = caller.first
          warning = "[yellow][WARN] #{self} => ##{older} is deprecated, use ##{newer} instead[/]"
          warning << " [light_black](" << location << ")[/] "
          Formatador.display_line(warning)
          send(:#{newer}, *args)
        end
      EOS
    end

  end
end

Version data entries

87 entries across 87 versions & 3 rubygems

Version Path
fog-0.3.31 lib/fog/core/deprecation.rb
fog-0.3.30 lib/fog/core/deprecation.rb
fog-0.3.29 lib/fog/core/deprecation.rb
fog-0.3.28 lib/fog/core/deprecation.rb
fog-0.3.27 lib/fog/core/deprecation.rb
fog-0.3.26 lib/fog/core/deprecation.rb
fog-0.3.25 lib/fog/core/deprecation.rb
fog-0.3.24 lib/fog/core/deprecation.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/core/deprecation.rb
fog-0.3.23 lib/fog/core/deprecation.rb
fog-0.3.22 lib/fog/core/deprecation.rb
fog-0.3.21 lib/fog/core/deprecation.rb
fog-0.3.20 lib/fog/core/deprecation.rb
fog-0.3.19 lib/fog/core/deprecation.rb
fog-0.3.18 lib/fog/core/deprecation.rb
fog-0.3.17 lib/fog/core/deprecation.rb
fog-0.3.16 lib/fog/core/deprecation.rb
fog-0.3.15 lib/fog/core/deprecation.rb
fog-0.3.14 lib/fog/core/deprecation.rb
fog-0.3.13 lib/fog/core/deprecation.rb