Sha256: 9bef97bfaf27ea07a7bdb2edfbd3bf474c98177acf885e263a6ebeddbed87672
Contents?: true
Size: 815 Bytes
Versions: 2
Compression:
Stored size: 815 Bytes
Contents
require 'rubygems' require 'cli/command' module Factor module CLI class CredentialTask < Command desc "set SERVICE NAME VALUE", "add a key and value for the credential" method_option :key, :type=>:string, :desc=>"File reference containing the symmetric key for encryption" def set(service,name,value) securet=nil if options[:key] secret=File.read(options[:key]) end puts @client.set_credential(service,name,value,secret) end desc "list", "get all of the credential" def list() puts @client.get_credentials() end desc "remove SERVICE NAME", "remove a value from the credentials bag" def remove(service,name) puts @client.remove_credential(service,name) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
factor-0.1.10 | lib/cli/credential_task.rb |
factor-0.1.09 | lib/cli/credential_task.rb |