Sha256: eeba9a75c194d06e7a33d02dfcad13987f4ef8f28eee335a709c523f8266c8a6
Contents?: true
Size: 1.08 KB
Versions: 9
Compression:
Stored size: 1.08 KB
Contents
require 'rubygems' require 'cli/command' require 'cli/server_task' require 'cli/workflow_task' require 'cli/credential_task' require 'cli/channel_task' module Factor module CLI class FactorTask < 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::FactorTask.register(Factor::CLI::ServerTask, "server","server","start and list servers") Factor::CLI::FactorTask.register(Factor::CLI::WorkflowTask,"workflow","workflow","start and list workflows") Factor::CLI::FactorTask.register(Factor::CLI::ChannelTask,"channel","channel","install,uninstall, list channels") Factor::CLI::FactorTask.register(Factor::CLI::CredentialTask,"credential","credential","manage remote credential store")
Version data entries
9 entries across 9 versions & 1 rubygems