Sha256: 330007e827abd8b6dd5758c509fbc11ed7a565cbc0b0942ba3c51bd5edb1c15a
Contents?: true
Size: 961 Bytes
Versions: 1
Compression:
Stored size: 961 Bytes
Contents
require 'thor' require 'thor/group' module Xmvc class API < Vendor vendor_name :app class << self protected def prepare_vendor(options) vendor = new([], options) vendor.inside(File.expand_path(options[:root])) do |root| vendor.destination_root = root yield vendor if block_given? configure(vendor) end vendor end end class_option :environment, :default => :development desc "stats", "View code statistics" def stats Xmvc.ensure_in_app Xmvc::Stats.dispatch end desc "secretary", "Return Sprockets::Secretary for app javascripts" def secretary(type = :js) say_status "secretary", self.class.to_s Sprockets::Secretary.new({ :root => destination_root, :load_path => ["vendor/plugins"], :source_files => config["javascripts"] }) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xmvc-0.1.12 | lib/xmvc/api.rb |