class Simp::Metadata::Commands::Set_write_url

Public Instance Methods

run(argv, engine = nil) click to toggle source
# File lib/simp/metadata/commands/set-write-url.rb, line 6
def run(argv, engine = nil)
  options = defaults(argv) do |opts,options|
    opts.banner = 'Usage: simp-metadata set-write-url <repo_name> <url>'
  end

  engine, root = get_engine(engine, options)
  engine.writable_url(argv[0], argv[1])
end