Method: Occson::Commands::Copy#initialize

Defined in:
lib/occson/commands/copy.rb

#initialize(source, destination, access_token, passphrase, force: false) ⇒ Copy

Builds an instance of the Copy command.

Parameters:

  • source (String)

    ‘-` for STDIN, an URI or a local file path

  • destination (String)

    ‘-` for STDOUT, an URI or a local file path

  • access_token (String)

    Occson access token

  • passphrase (String)

    Passphrase used for encryption of the document

  • force (Boolean) (defaults to: false)

    Whether to overwrite target document in Occson, if any. Default ‘false`.



24
25
26
27
28
29
30
# File 'lib/occson/commands/copy.rb', line 24

def initialize(source, destination, access_token, passphrase, force: false)
  @source = source
  @destination = destination
  @access_token = access_token
  @passphrase = passphrase
  @force = force
end