Sha256: 842855f61438f87328cc6800a9ca64a526f651f820325121513a416d1a184cce
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
require 'thor' module Yao::Cli class Main < Thor def initialize(*args) super Yao.configure do auth_url ENV['OS_AUTH_URL'] tenant_name ENV['OS_TENANT_NAME'] username ENV['OS_USERNAME'] password ENV['OS_PASSWORD'] client_cert ENV['OS_CERT'] client_key ENV['OS_KEY'] region_name ENV['OS_REGION_NAME'] end end desc "version", "show version" def version(*args) puts Yao::Cli::VERSION end desc "server", "server subcommands" subcommand("server", Yao::Cli::Server) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yao-cli-0.1.0 | lib/yao/cli/main.rb |