Fix bug in block/remove
This commit is contained in:
parent
f0cebae13d
commit
0dba798d0e
|
@ -20,7 +20,7 @@ Eg: `pigeon identity show` becomes `./pigeon-cli show`.
|
|||
- [X] pigeon peer add
|
||||
- [X] pigeon peer remove
|
||||
- [X] pigeon peer block
|
||||
- [ ] pigeon peer all
|
||||
- [X] pigeon peer all
|
||||
- [ ] pigeon message new
|
||||
- [ ] pigeon message current
|
||||
- [ ] pigeon message append
|
||||
|
@ -32,3 +32,5 @@ Eg: `pigeon identity show` becomes `./pigeon-cli show`.
|
|||
- [ ] 100% documentation
|
||||
- [ ] 100% coverage
|
||||
- [ ] add parsers and validators for all CLI inputs
|
||||
- [ ] Performance benchmarks
|
||||
- [ ] Performance tuning (DO THIS LAST!)
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
require "base64"
|
||||
require "digest"
|
||||
require "ed25519"
|
||||
require "securerandom"
|
||||
|
||||
# Remove this when we launch or add ENVs:
|
||||
require "pry"
|
||||
|
||||
require_relative File.join("pigeon", "config.rb")
|
||||
require_relative File.join("pigeon", "key_pair.rb")
|
||||
require_relative File.join("pigeon", "storage.rb")
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
require "ed25519"
|
||||
require "securerandom"
|
||||
require "base64"
|
||||
|
||||
module Pigeon
|
||||
# This is a wrapper around the `ed25519` gem to
|
||||
# help us maintain our sanity when the Gem's API
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
require "pry"
|
||||
require "digest"
|
||||
|
||||
module Pigeon
|
||||
class Storage
|
||||
ROOT_DIR = ".pigeon"
|
||||
|
@ -65,7 +62,8 @@ module Pigeon
|
|||
end
|
||||
|
||||
def remove_peer(identity)
|
||||
FileUtils.rm_rf(KeyPair.strip_headers(identity))
|
||||
path = KeyPair.strip_headers(identity)
|
||||
FileUtils.rm_rf(File.join(peer_dir, path))
|
||||
identity
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue