Sha256: 19b1553126c037ca33a89c341de1ebb1556e2b1bff1c63cf6a7e823b32f51f09
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
require 'rubygems' require 'cli/command' require 'cli/server' require 'cli/workflow' require 'cli/credential' module Factor module CLI class Factor < Command desc "login EMAIL TOKEN", "login with token" # method_option :email, :alias=>"-e", :type=>:string, :desc=>"Email address for Factor account", :required=>true # method_option :token, :alias=>"-t", :type=>:string, :desc=>"Token value to set", :required=>true def login(email,token) config = get_config config[:email]=email config[:token]=token save_config(config) end end end end Factor::CLI::Factor.register(Factor::CLI::Server, "server","server","start and list servers") Factor::CLI::Factor.register(Factor::CLI::Workflow,"workflow","workflow","start and list workflows") Factor::CLI::Factor.register(Factor::CLI::Channel,"channel","channel","install,uninstall, list channels") Factor::CLI::Factor.register(Factor::CLI::Credential,"credential","credential","manage remote credential store")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
factor-0.0.89 | lib/cli/factor.rb |