Sha256: 99dda858b5ea2693c15fd4b98a2696515772a37291618cbacde1540f552b95da

Contents?: true

Size: 949 Bytes

Versions: 360

Compression:

Stored size: 949 Bytes

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:
-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)

puts resource[path].find

Version data entries

360 entries across 360 versions & 1 rubygems

Version Path
rbbt-util-5.21.17 share/rbbt_commands/resource/find
rbbt-util-5.21.16 share/rbbt_commands/resource/find
rbbt-util-5.21.14 share/rbbt_commands/resource/find
rbbt-util-5.21.13 share/rbbt_commands/resource/find
rbbt-util-5.21.12 share/rbbt_commands/resource/find
rbbt-util-5.21.11 share/rbbt_commands/resource/find
rbbt-util-5.21.9 share/rbbt_commands/resource/find
rbbt-util-5.21.8 share/rbbt_commands/resource/find
rbbt-util-5.21.7 share/rbbt_commands/resource/find
rbbt-util-5.21.6 share/rbbt_commands/resource/find
rbbt-util-5.21.5 share/rbbt_commands/resource/find
rbbt-util-5.21.4 share/rbbt_commands/resource/find
rbbt-util-5.21.3 share/rbbt_commands/resource/find
rbbt-util-5.21.2 share/rbbt_commands/resource/find
rbbt-util-5.21.1 share/rbbt_commands/resource/find
rbbt-util-5.21.0 share/rbbt_commands/resource/find
rbbt-util-5.20.26 share/rbbt_commands/resource/find
rbbt-util-5.20.25 share/rbbt_commands/resource/find
rbbt-util-5.20.24 share/rbbt_commands/resource/find
rbbt-util-5.20.23 share/rbbt_commands/resource/find