Sha256: 152dbfd27c3866d4b8dde7eaad97afbe2d44df71bf58894ca6cbce733bcddfdf
Contents?: true
Size: 1.11 KB
Versions: 360
Compression:
Stored size: 1.11 KB
Contents
#!/usr/bin/env ruby require 'rbbt-util' require 'rbbt/resource' require 'rbbt/workflow' options = SOPT.get <<EOF -w--workflows* Workflows to use; 'all' for all in Rbbt.etc.workflows: -r--requires* Files to require; 'all' for all in Rbbt.etc.requires: -O--output* Where to save the file. Defaults to its proper location: -s--server* Server to use: -h--help Help EOF if options[:help] puts SOPT.doc exit end case options[:workflows] when nil, false, "false", "none" when "all" Rbbt.etc.workflows.list.each do |workflow| Workflow.require_workflow file end if Rbbt.etc.workflows.exists? else options[:workflows].split(/[ ,;|]/).each do |workflow| Workflow.require_workflow workflow end end case options[:requires] when nil, false, "false", "none" when "all" Rbbt.etc.requires.list.each do |file| require file end if Rbbt.etc.requires.exists? else options[:requires].split(/[ ,;|]/).each do |file| require file end end resource, path = ARGV resource = Kernel.const_get(resource) output = options[:output] || resource[path].find(:user) resource.get_from_server(path, output, options[:server])
Version data entries
360 entries across 360 versions & 1 rubygems