Method: Ruber::PluginSpecificationReader#process_pdf

Defined in:
lib/ruber/plugin_specification_reader.rb

#process_pdf(hash) ⇒ Object


87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/ruber/plugin_specification_reader.rb', line 87

def process_pdf hash
  @plugin_info.name = read_name hash
  @plugin_info.about = read_about hash
  @plugin_info.version = read_version hash
  @plugin_info.required = read_required hash
  @plugin_info.required.each do |f| 
    file = File.join @plugin_info.directory, f
    if file.end_with?('.rb') then load file
    else require file
    end
  end
  @plugin_info.class_obj = read_class hash
  @plugin_info.features = read_features hash
  @plugin_info.deps = read_deps hash
  @plugin_info.runtime_deps = read_runtime_deps hash
  @plugin_info.ui_file = read_ui_file hash
  @plugin_info.tool_widgets = read_tool_widgets hash
  @plugin_info.config_widgets = read_config_widgets hash
  @plugin_info.config_options = read_config_options hash
  @plugin_info.project_options = read_project_options hash
  @plugin_info.project_widgets = read_project_widgets hash
  @plugin_info.extensions = read_extensions hash
  @plugin_info.actions = read_actions hash
  @plugin_info
end