Class: S5::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/s5/cli.rb

Instance Method Summary collapse

Instance Method Details

#observe(directory) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/s5/cli.rb', line 9

def observe(directory)
  if options[:help]
    S5::Cli.command_help(shell, 'observe')
    exit
  end
  daemon = S5::Daemon.new(directory, bucket_name: options[:bucket])
  daemon.start
  daemon
end