Sha256: 50c4dd2f1c593cb7e9866462482bbecb906c56394fbab1829db7c895c7446ad8
Contents?: true
Size: 679 Bytes
Versions: 3
Compression:
Stored size: 679 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 "lbaas", "lbaas subcommands" subcommand("lbaas", Yao::Cli::LBaaS::Main) desc "server", "server subcommands" subcommand("server", Yao::Cli::Server) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yao-cli-0.2.2 | lib/yao/cli/main.rb |
yao-cli-0.2.1 | lib/yao/cli/main.rb |
yao-cli-0.2.0 | lib/yao/cli/main.rb |