Add parameters for map plugins.
This commit is contained in:
parent
fba72bf20e
commit
922ebbb0b1
2 changed files with 20 additions and 14 deletions
|
@ -19,7 +19,12 @@ class Qasim::Map::Ssh < Qasim::Map::Generic
|
||||||
]
|
]
|
||||||
|
|
||||||
def self.parameters
|
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
|
end
|
||||||
|
|
||||||
def self.handles
|
def self.handles
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
|
|
||||||
|
# vim: set ts=2 sw=2 et:
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require 'qasim/map/generic'
|
require 'qasim/map/generic'
|
||||||
|
|
||||||
|
@ -7,12 +8,12 @@ class Qasim::Map::Webdav < Qasim::Map::Generic
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.parameters
|
def self.parameters
|
||||||
req = super
|
super.merge({
|
||||||
req << :webdav_user # ex: foo
|
webdav_user: { required: true}, # ex : foo
|
||||||
req << :webdav_password # ex: bar
|
webdav_password: { required: true}, # ex : bar
|
||||||
req << :webdav_port # ex: 80, 8080, ...
|
webdav_port: { default: 80}, # ex : 80, 8080, ...
|
||||||
req << :webdav_protocol # ex: http, https
|
webdav_protocol: { default: :http} # ex : http, https
|
||||||
req
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.handles
|
def self.handles
|
||||||
|
|
Loading…
Reference in a new issue