Sha256: 827270a09190390b511bba59d0456cafd4b1d38c8ee01c08e6fddfe6bbe9bcbe

Contents?: true

Size: 251 Bytes

Versions: 10

Compression:

Stored size: 251 Bytes

Contents

keys = [] 
dirname = File.join(find_account_dir(@username), "keys")
Dir.entries(dirname).each do |name|
  next if name == '.' || name == '..'
  keys << name
end

if OPTIONS[:format] == :yaml
  puts YAML::dump(keys)
else
  keys.each { |k| puts k }
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hubbard-0.0.16 commands/list-keys.rb
hubbard-0.0.15 commands/list-keys.rb
hubbard-0.0.14 commands/list-keys.rb
hubbard-0.0.13 commands/list-keys.rb
hubbard-0.0.12 commands/list-keys.rb
hubbard-0.0.11 commands/list-keys.rb
hubbard-0.0.10 commands/list-keys.rb
hubbard-0.0.9 commands/list-keys.rb
hubbard-0.0.8 commands/list-keys.rb
hubbard-0.0.7 commands/list-keys.rb