Class: S3Poller::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/s3poller/cli.rb

Instance Method Summary collapse

Instance Method Details

#pollObject


14
15
16
17
18
19
20
# File 'lib/s3poller/cli.rb', line 14

def poll
  s3poller = S3Poller::Poller.new(options[:config_path], options[:local_path])
  while true
    s3poller.poll
    sleep 1
  end
end