Class: BOTR::CLI

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

Instance Method Summary collapse

Instance Method Details

#upload(video_path) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/botr/cli.rb', line 31

def upload(video_path)
	_options = clean_options(options)
	set_configurations(_options[:key], _options[:secret])

	puts "\nStarting upload.\n\n"
	prepare_video_container(_options)

	puts "Uploading....\n\n"
	upload_video(video_path)
	
	puts "Upload Complete.\n\n"
end