class Freighthop::CLI::Vagrant
Constants
- COMMANDS
Public Class Methods
match?(*args)
click to toggle source
# File lib/freighthop/cli/vagrant.rb, line 11 def self.match?(*args) COMMANDS.include?(args.first) end
new(*args)
click to toggle source
# File lib/freighthop/cli/vagrant.rb, line 15 def initialize(*args) @subcommand, @rest = args end
Public Instance Methods
args()
click to toggle source
# File lib/freighthop/cli/vagrant.rb, line 19 def args ([*@rest] || []).join(' ') end
run()
click to toggle source
# File lib/freighthop/cli/vagrant.rb, line 23 def run Freighthop::CLI::Checks.ensure_config_exists! exec %Q(vagrant #{@subcommand} #{args}) end