Class: Ebics::Cli

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/ebics/cli.rb

Instance Method Summary collapse

Instance Method Details

#create(name = 'pebics', email = '[email protected]', country = 'France', organization = 'Euro-Information') ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/ebics/cli.rb', line 54

def create(name = 'pebics', email = '[email protected]', country = 'France', organization = 'Euro-Information')
  require_password
  require 'ebics/user'
  user = Ebics::User::Creator.new
  user.run(
    name,
    email,
    country,
    organization,
    true,
    options
  )
end

#download(file) ⇒ Object



30
31
32
33
34
35
# File 'lib/ebics/cli.rb', line 30

def download(file)
  require_password
  require 'ebics/file/download'
  requestor = Ebics::File::Download.new
  requestor.run file, options
end

#download_certsObject



17
18
19
20
21
22
# File 'lib/ebics/cli.rb', line 17

def download_certs
  require_password
  require 'ebics/hbb'
  requestor = Ebics::Hbb.new
  requestor.run options
end

#init_userObject



73
74
75
76
77
78
# File 'lib/ebics/cli.rb', line 73

def init_user
  require_password
  require 'ebics/user'
  requestor = Ebics::User::Initiator.new
  requestor.run options
end

#upload(file) ⇒ Object



42
43
44
45
46
47
# File 'lib/ebics/cli.rb', line 42

def upload(file)
  require_password
  require 'ebics/file/upload'
  requestor = Ebics::File::Upload.new
  requestor.run file, options
end