Class: Ebics::Cli
Instance Method Summary collapse
- #create(name = 'pebics', email = '[email protected]', country = 'France', organization = 'Euro-Information') ⇒ Object
- #download(file) ⇒ Object
- #download_certs ⇒ Object
- #init_user ⇒ Object
- #upload(file) ⇒ Object
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, ) 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, end |
#download_certs ⇒ Object
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 end |