8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/vagrant/camera/command.rb', line 8
def execute
@options = {}
@screenshots = []
opts = OptionParser.new do |o|
o.banner = "Usage: vagrant camera [vm-name] [options] [-h]"
if open?
o.on("-o", "--open", "Open generated image after capture") do |c|
@options[:open] = true
end
end
o.on("-s PATH", "--save", "Save images to a specific directory.") do |c|
@options[:save_location] = c
end
end
@argv = parse_options(opts)
return if !@argv
capture_screens
end
|