class Simp::Media::Type::Local
Attributes
input_directory[W]
Public Instance Methods
fetch_component(component, options)
click to toggle source
# File lib/simp/media/type/local.rb, line 12 def fetch_component(component, options) retval = {} case component.class.to_s when 'String' retval['path'] = "#{options['input']}/simp/metadata/#{component.name}" when 'Simp::Metadata::Component' # XXX ToDo: Add manifest.yaml support so we don't need this logic at all subdirectory = case component.component_type when 'documentation' 'simp/docs' when 'puppet-module' 'simp/modules' else 'simp/assets' end retval['path'] = "#{options['input']}/#{subdirectory}/#{component.name}" end retval end
input_directory()
click to toggle source
# File lib/simp/media/type/local.rb, line 8 def input_directory @options['input'] end