Class: Ploy::Command::Oracle
Instance Method Summary collapse
Instance Method Details
#help ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/ploy/command/oracle.rb', line 38 def help return "usage: ploy oracle [dir]\n\nExamples:\n\n $ ploy oracle /etc/ploy/metadata.d\n\nSummary:\n\n The oracle command starts up an http server. When it receives a GET request, it\n will read all of the metadata files in [dir] and return the data in them to\n the client as json.\n\n" end |
#run(argv) ⇒ Object
35 36 37 |
# File 'lib/ploy/command/oracle.rb', line 35 def run(argv) OracleServer.oracle_run Ploy::MetaSrc.new(argv.shift || '/etc/ploy/metadata.d') end |