class Ragent::Cli::Main

Public Instance Methods

console() click to toggle source
# File lib/ragent/cli.rb, line 23
def console
  Ragent.start(workdir: options[:root],
               log_level: options[:log_level],
               blocking: false)
  require 'irb'
  ARGV.clear # see http://stackoverflow.com/questions/33070092/irb-start-not-starting
  IRB.start
end
start() click to toggle source
# File lib/ragent/cli.rb, line 10
def start
  Ragent.start(workdir: options[:root],
               log_level: options[:log_level],
               blocking: true)
end
version() click to toggle source
# File lib/ragent/cli.rb, line 41
def version
  puts Ragent::VERSION.to_s
end