lib/dockistrano/service_dependency.rb
# Creates a new service instance based on the name and configuration. When
# configuration is not local, the configuration is fetched from Github and
# processed.
# In some cases, you only need an uninitialized version of a dependency, for
# example when pulling new versions of images. Provide initialize=false to
# skip tag detection and configuration loading from the image.
Creates a new service instance based on the name and configuration. When
configuration is not local, the configuration is fetched from Github and
processed.
In some cases, you only need an uninitialized version of a dependency, for
example when pulling new versions of images. Provide initialize=false to
skip tag detection and configuration loading from the image.
Creates a new service instance based on the name and configuration . When configuration is not local the configuration is fetched from Github and processed . In some cases you only need an uninitialized version of a dependency for example when pulling new versions of images . Provide initialize = false to skip tag detection and configuration loading from the image .
def load_from_cache
      image_id = backing_service.image_id
      if image_id and File.exists?("tmp/configuration_cache/#{image_id}")
        YAML.load_file("tmp/configuration_cache/#{image_id}")
      else
        nil
      end
    end
def load_from_cache image_id = backing_service . image_id if image_id and File . exists? ( "tmp/configuration_cache/#{image_id}" ) YAML . load_file ( "tmp/configuration_cache/#{image_id}" ) else nil end end
Creates a new service instance based on the name and configuration.
Creates a new service instance based on the name and configuration .