class MDT::Fetchers::Dummy
A class that implements dummy fetchers
Public Class Methods
key()
click to toggle source
A method that defines a key for fetchers class. Returns:
-
“dummy”
# File lib/mdt/fetchers/dummy.rb 10 def self.key 11 'dummy' 12 end
subkeys()
click to toggle source
A method that defines keys for available fetchers. Returns:
-
+[“dummy”]+
# File lib/mdt/fetchers/dummy.rb 17 def self.subkeys 18 ['dummy'] 19 end
Public Instance Methods
fetch(key, options = {})
click to toggle source
A method that defines how to fetch project contents to a deploy directory with fetchers. Arguments:
-
key
- a key identifier of a particular fetcher -
options
- options for fetchers as a Hash
Returns:
-
0
# File lib/mdt/fetchers/dummy.rb 27 def fetch(key, options = {}) 28 case key 29 when 'dummy' 30 puts "Fetchers: dummy, fetcher: dummy, fetch, options: #{options.to_s}" 31 0 32 end 33 end