Class: Cipherpipe::OnePassword
- Inherits:
-
Object
- Object
- Cipherpipe::OnePassword
show all
- Defined in:
- lib/cipherpipe/one_password.rb
Defined Under Namespace
Classes: Download, Upload
Class Method Summary
collapse
Class Method Details
.available? ⇒ Boolean
2
3
4
|
# File 'lib/cipherpipe/one_password.rb', line 2
def self.available?
!`which op`.empty?
end
|
.download(external_source) ⇒ Object
6
7
8
9
10
|
# File 'lib/cipherpipe/one_password.rb', line 6
def self.download(external_source)
require_relative "one_password/download"
Cipherpipe::OnePassword::Download.call external_source
end
|
.upload(external_source, settings) ⇒ Object
12
13
14
15
16
|
# File 'lib/cipherpipe/one_password.rb', line 12
def self.upload(external_source, settings)
require_relative "one_password/upload"
Cipherpipe::OnePassword::Upload.call external_source, settings
end
|