Class: Botspec::CLI

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

Instance Method Summary collapse

Instance Method Details

#verifyObject



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/cli.rb', line 14

def verify()
  dialogs = options[:dialogs]

  if options[:botname]
    bot_name = options[:botname]
  elsif raise "No bot specified"
  end

  puts "running specs in #{dialogs} for bot #{bot_name}"

  BotSpec::BotSpecRunner.run({dialogs_path: dialogs, botname: bot_name})
end