Sha256: f979514fd93c0cc604e676f95164f293b588065394e9bfd701cd155d06f68704
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
require 'extlib' require 'yaml' require 'thor' module Xmvc #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 class Vendor < Thor #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 def initialize(args, options, config) puts "options: #{options}, config: #{config}" say_status("Xmvc::Vendor initialized, load teh config file") end end end module ExtJS #VERSION = "0.1.0" #ROOT = File.dirname(__FILE__) #CACHEFLY_URL = "http://extjs.cachefly.net/" #GITHUB_URL = "git@github.com:extjs/extjs.git" ## # Example error-extension # #class Error < Thor::Cheese::Error; status_code(0) ; end #class InstallError < Error; status_code(9) ; end class API < Xmvc::Vendor desc "secretary", "Returns the asset secretary" def secretary say_status("ExtJS API") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
extjs-0.1.1 | lib/extjs.rb |