Sha256: 0566a3714db9682205a1c84bd4aecb4266efa7dfd1f898b2e49b4198df2448b6
Contents?: true
Size: 749 Bytes
Versions: 3
Compression:
Stored size: 749 Bytes
Contents
require_relative 'tester' require_relative 'model' require_relative 'view' module WebConsole::Dependencies class Controller < WebConsole::Controller def initialize @view = View.new end def missing_dependency(dependency) name = dependency.name type = self.class.string_for_type(dependency.type) options = dependency.options if options.has_key?(:installation_instructions) installation_instructions = options[:installation_instructions] end @view.add_missing_dependency(name, type, installation_instructions) end private def self.string_for_type(type) case type when :shell_command return "shell command" end nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems