Sha256: 916a820448c4a10912979f41649ad664985ca09fc55c7068408ec9c566df3f0a
Contents?: true
Size: 954 Bytes
Versions: 4
Compression:
Stored size: 954 Bytes
Contents
#!/usr/bin/ruby require "vrlib" # from require_all gem: require_rel 'src/' def start_my_yard begin require "yard" rescue LoadError alert "You need to install the yard gem. At command prompt:\n\ngem install yard" return end # create /home/my_yard if doesn't exist unless File.directory?(File.join(Dir.home, "my_yard")) VR.copy_recursively File.join(File.dirname(__FILE__), "home_my_yard"), File.join(Dir.home, "my_yard") end VR::load_yaml(YardTheme, File.join(Dir.home, "my_yard", "themes", "default.yaml")) $open_project = (ARGV[0] and File.directory?(ARGV[0])) ? File.expand_path(ARGV[0]) : Dir.pwd $env = VR::load_yaml(GlobalSettings, File.join(Dir.home, "my_yard", "global_settings.yaml")) loop do $env.add_project($open_project) proj = VR::load_yaml(MyYard, File.join($open_project, ".yardoc", "my_yard.yaml")) proj.show_glade() break if $open_project == :exit end end start_my_yard
Version data entries
4 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
my_yard-0.0.3 | ./my_yard |
my_yard-0.0.3 | my_yard |
my_yard-0.0.2 | ./my_yard |
my_yard-0.0.2 | my_yard |