Add parameters for map plugins.

This commit is contained in:
Glenn Y. Rolland 2015-08-14 09:19:41 +02:00
parent fba72bf20e
commit 922ebbb0b1
2 changed files with 20 additions and 14 deletions

View file

@ -19,7 +19,12 @@ class Qasim::Map::Ssh < Qasim::Map::Generic
]
def self.parameters
super
super.merge({
ssh_user: { required: true }, # ex : foo
ssh_password: { required: true }, # ex : bar
ssh_port: { default: 80 }, # ex : 80, 8080, ...
ssh_cypher: { default: CYPHER_AES256CBC } # ex : http, https
})
end
def self.handles

View file

@ -1,22 +1,23 @@
# vim: set ts=2 sw=2 et:
require 'fileutils'
require 'qasim/map/generic'
class Qasim::Map::Webdav < Qasim::Map::Generic
def initialize
end
def initialize
end
def self.parameters
req = super
req << :webdav_user # ex: foo
req << :webdav_password # ex: bar
req << :webdav_port # ex: 80, 8080, ...
req << :webdav_protocol # ex: http, https
req
end
def self.parameters
super.merge({
webdav_user: { required: true}, # ex : foo
webdav_password: { required: true}, # ex : bar
webdav_port: { default: 80}, # ex : 80, 8080, ...
webdav_protocol: { default: :http} # ex : http, https
})
end
def self.handles
[ :webdav, :fusedav ]
end
def self.handles
[ :webdav, :fusedav ]
end
end