Module: SparkleFormation::SparkleAttribute::Rackspace

Includes:
Heat
Included in:
SparkleFormation::SparkleStruct::Rackspace
Defined in:
lib/sparkle_formation/sparkle_attribute/rackspace.rb

Overview

Rackspace specific helper implementations

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object

Set customized struct behavior



14
15
16
# File 'lib/sparkle_formation/sparkle_attribute/rackspace.rb', line 14

def self.included(klass)
  klass.include SparkleFormation::SparkleAttribute::Heat
end

Instance Method Details

#_depends_on(resource_name) ⇒ Array<String> #_depends_on(resource_names) ⇒ Array<String> #_depends_on(*resource_names) ⇒ Array<String> Also known as: depends_on! Originally defined in module Heat

Note:

this will directly modify the struct at its current context to inject depends on structure

Resource dependency generator

Overloads:

  • #_depends_on(resource_name) ⇒ Array<String>

    Parameters:

    • resource_name (String, Symbol)

      logical resource name

  • #_depends_on(resource_names) ⇒ Array<String>

    Parameters:

    • resource_names (Array<String, Symbol>)

      list of logical resource names

  • #_depends_on(*resource_names) ⇒ Array<String>

    Parameters:

    • resource_names (Array<String, Symbol>)

      list of logical resource names

Returns:

  • (Array<String>)

#_digest(value, algorithm = 'sha512') ⇒ Object Also known as: digest! Originally defined in module Heat

digest generator

Parameters:

  • value (String, Hash)

    thing to be hashed

  • algorithm (String) (defaults to: 'sha512')

    algorithm to use (defaults to 'sha512')

#_get_attr(logical_id, attribute_name) ⇒ Hash Also known as: _attr, attr! Originally defined in module Heat

get_attr generator

Parameters:

  • logical_id (String, Symbol)

    logical resource name

  • attribute_name (String, Symbol)

    name of desired resource attribute

Returns:

  • (Hash)

#_get_file(loc) ⇒ Hash Also known as: _file, file! Originally defined in module Heat

get_file generator

Parameters:

  • loc (String)

Returns:

  • (Hash)

#_get_param(name) ⇒ Hash #_get_param(name, index1, index2, ...) ⇒ Hash Also known as: _param, param! Originally defined in module Heat

Overloads:

  • #_get_param(name) ⇒ Hash

    get_param generator

    Parameters:

    • name (String, Symbol)

      name of parameter

  • #_get_param(name, index1, index2, ...) ⇒ Hash

    get_param generator accessing complex data

    Parameters:

    • name (String, Symbol)

      name of parameter

    • index1 (Object)

      value for key/index

    • index2 (Object)

      value for key/index

Returns:

  • (Hash)

#_get_resource(r_name) ⇒ Hash Also known as: _resource, resource! Originally defined in module Heat

get_resource generator

Parameters:

  • r_name (String, Symbol)

Returns:

  • (Hash)

#_list_join(*args, opts = {}) ⇒ Hash Also known as: _join, join! Originally defined in module Heat

list_join generator

Parameters:

  • args (String, Hash)

    list of items to join

  • opts (Hash) (defaults to: {})

Options Hash (opts):

  • :options (Hash)

    options for join function

Returns:

  • (Hash)

#_map_merge(hash1, hash2, ...) ⇒ Hash Also known as: map_merge! Originally defined in module Heat

map_merge generator

Parameters:

  • hash1 (Hash)

    item to merge

  • hash2 (Hash)

    item to merge

Returns:

  • (Hash)

#_project_idHash Also known as: project_id! Originally defined in module Heat

Returns:

  • (Hash)

#_resource_facade(type) ⇒ Hash Also known as: _facade, facade!, resource_facade! Originally defined in module Heat

resource_facade generator

Parameters:

  • type (String, Symbol)

Returns:

  • (Hash)

#_stack_idHash Also known as: stack_id! Originally defined in module Heat

Returns:

  • (Hash)

#_stack_nameHash Also known as: stack_name! Originally defined in module Heat

Returns:

  • (Hash)

#_stack_output(stack_name, output_name) ⇒ Hash Also known as: stack_output! Originally defined in module Heat

Reference output value from nested stack

Parameters:

  • stack_name (String, Symbol)

    logical resource name of stack

  • output_name (String, Symbol)

    stack output name

Returns:

  • (Hash)

#_str_replace(template, params) ⇒ Hash Also known as: _replace, replace! Originally defined in module Heat

str_replace generator

Parameters:

  • template (String)
  • params (Hash)

Returns:

  • (Hash)

#_str_split(splitter, string, idx = nil) ⇒ Hash Also known as: _split, split! Originally defined in module Heat

str_split generator

Parameters:

  • splitter (String)
  • string (Object)
  • idx (Numeric) (defaults to: nil)

Returns:

  • (Hash)