class CssZero::AddGenerator
def add_components
def add_components components.each { |component| copy_resources_for(component) } end
def copy_resources_for(component)
def copy_resources_for(component) if resources.has_key?(component) resources[component].each { |resource| copy_file(resource) } else say_status :invalid, component, :red end end
def resources
def resources @resources ||= YAML.load_file(resources_path) end
def resources_path
def resources_path File.expand_path "resources.yml", __dir__ end