Sha256: ae4409a511935e9faa11ed7195045f15b39fbb00c2d8154cf7a470a2aeded4bd

Contents?: true

Size: 701 Bytes

Versions: 5

Compression:

Stored size: 701 Bytes

Contents

require "sparkle_formation"

class SparkleFormation

  # Resources helper
  class Resources

    # Rackspace specific resources collection
    class Rackspace < Resources
      class << self
        include Bogo::Memoization

        # Load the builtin AWS resources
        #
        # @return [TrueClass]
        def load!
          memoize(:rackspace_resources, :global) do
            load(
              File.join(
                File.dirname(__FILE__),
                "rackspace_resources.json"
              )
            )
            true
          end
        end

        # Auto load data when included
        def included(_klass)
          load!
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sparkle_formation-3.0.40 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.38 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.36 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.34 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.32 lib/sparkle_formation/resources/rackspace.rb