Sha256: 93eac5aeb388b8df57b5eea31281077493d1859fdbe159d80bab181272b017b8
Contents?: true
Size: 974 Bytes
Versions: 1
Compression:
Stored size: 974 Bytes
Contents
require 'kangaroo/commands/base' require 'kangaroo/commands/endpoint' require 'kangaroo/doc' module Kangaroo module Commands class Doc < Base def run super initialize_global_endpoint generate_yardoc end protected def set_load_associations @load_associations = true end def setup_options p super setup_option p, '--load_associations', 'Wether to load associated models too.' end def initialize_global_endpoint ::Kang.connect configuration, logger ::Kang.load_models! ::Kang.load_associated_models! if @load_associations end def generate_yardoc Kangaroo::Doc::Base.generate ::Kang.namespace end def banner "".tap do |s| s << 'kangdoc - Generate yardoc for OpenERP models.' s << '' s << 'Usage:' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kangaroo-0.1.0.alpha1 | lib/kangaroo/commands/doc.rb |