Class: ImagePuller
- Inherits:
-
Object
- Object
- ImagePuller
- Defined in:
- lib/image_puller.rb
Constant Summary collapse
- SUPPORTED_PULLERS =
['flickr'].freeze
Class Method Summary collapse
Class Method Details
.pull(file_path = nil) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/image_puller.rb', line 16 def pull(file_path = nil) return unless valid_settings_file?(file_path) && valid_type factory = PullerFactory.create(ENV['PULLER_TYPE']) factory.exec end |