class Cipherpipe::Vault::Upload

Attributes

external_source[R]
variables[R]

Public Class Methods

call(external_source, variables) click to toggle source
# File lib/cipherpipe/vault/upload.rb, line 5
def self.call(external_source, variables)
  new(external_source, variables).call
end
new(external_source, variables) click to toggle source
# File lib/cipherpipe/vault/upload.rb, line 9
def initialize(external_source, variables)
  @external_source = external_source
  @variables       = variables
end

Public Instance Methods

call() click to toggle source
# File lib/cipherpipe/vault/upload.rb, line 14
def call
  Cipherpipe::Vault::API.new(Vault.client).write(
    external_source.destination, variables
  )
end