class Freighthop::CLI

Constants

COMMANDS

Public Class Methods

new(*args) click to toggle source
# File lib/freighthop/cli.rb, line 19
def initialize(*args)
  @args = args
end

Public Instance Methods

run() click to toggle source
# File lib/freighthop/cli.rb, line 23
def run
  Freighthop::VagrantEnv.activate!

  command = COMMANDS.detect { |c| c.match?(*@args) }
  # no need for a nil check, because CLI::SSH will always match
  command.new(*@args).run
end