Class: Cipherpipe::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/cipherpipe/cli.rb

Class Method Summary collapse

Class Method Details

.call(arguments = [], configuration = nil) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/cipherpipe/cli.rb', line 2

def self.call(arguments = [], configuration = nil)
  case arguments.first
  when "upload"
    Cipherpipe::Commands::Upload.call configuration
  when "download"
    Cipherpipe::Commands::Download.call configuration
  when "ec2"
    Cipherpipe::Commands::EC2.call configuration
  else
    Cipherpipe::Commands::Help.call configuration
  end
end