Module: Bubbles

Extended by:
Bubbles
Included in:
Bubbles
Defined in:
lib/bubbles.rb,
lib/bubbles/config.rb,
lib/bubbles/version.rb,
lib/bubbles/dir_watcher.rb,
lib/bubbles/uploaders/s3.rb,
lib/bubbles/command_queue.rb,
lib/bubbles/bubblicious_file.rb,
lib/bubbles/uploaders/local_dir.rb,
lib/bubbles/common_uploader_interface.rb,
lib/bubbles/uploaders/s3_ensure_connection.rb

Defined Under Namespace

Modules: CommonUploaderInterface, Uploaders Classes: BubbliciousFile, CommandQueue, Config, DirWatcher

Constant Summary collapse

VERSION =
"0.0.5"

Instance Method Summary collapse

Instance Method Details

#configObject



22
23
24
# File 'lib/bubbles.rb', line 22

def config
  @config ||= Config.new
end

#runObject



26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/bubbles.rb', line 26

def run
  command_queue = Bubbles::CommandQueue.new(config: config)

  command_queue << Bubbles::DirWatcher.new({
    config: config,
    command_queue: command_queue
  })

  loop do
    command_queue.call_next
    sleep config.sleep_interval
  end
end