Method: Jetel::Modules::Module#sources

Defined in:
lib/jetel/modules/module.rb

#sources(global_options, options, _args) ⇒ Object



130
131
132
133
134
135
136
137
138
139
140
141
# File 'lib/jetel/modules/module.rb', line 130

def sources(global_options, options, _args)
  opts = global_options.merge(options)

  res = self.class.sources

  if opts['format'] == 'json'
    puts MultiJson.dump(res, :pretty => true)
  else
    pp res
  end

end