Class: Xmvc::Vendor

Inherits:
Thor
  • Object
show all
Defined in:
lib/xmvc/vendor.rb,
lib/xmvc/vendor/plugin.rb

Defined Under Namespace

Classes: Plugin

Instance Method Summary collapse

Constructor Details

#initialize(args, options, config) ⇒ Vendor

CONFIG_PATH = File.join(ROOT, “vendor.yml”) ROOT = File.dirname(__FILE__) class << self

def config(root)
  @config ||= YAML.load(File.read(File.join(root, "vendor.yml", ))).to_mash
end

end



16
17
18
19
# File 'lib/xmvc/vendor.rb', line 16

def initialize(args, options, config)
  puts "options: #{options}, config: #{config}"
  say_status("Xmvc::Vendor initialized, load teh config file")
end