Sha256: 4fa0e49e470fb0005d5564ad676904e11e0678cebc36a5862e6e5780e046ccc1

Contents?: true

Size: 705 Bytes

Versions: 21

Compression:

Stored size: 705 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

21 entries across 21 versions & 1 rubygems

Version Path
sparkle_formation-3.0.26 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.24 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.22 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.20 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.18 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.16 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.14 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.12 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.10 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.8 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.6 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.4 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.2 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-3.0.0 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-2.1.8 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-2.1.6 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-2.1.4 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-2.1.2 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-2.1.0 lib/sparkle_formation/resources/rackspace.rb
sparkle_formation-2.0.2 lib/sparkle_formation/resources/rackspace.rb