Sha256: 6843741d61a0abb8d711fecf918c4e3d2262a61622a73eeda612f914f5f96903

Contents?: true

Size: 567 Bytes

Versions: 4

Compression:

Stored size: 567 Bytes

Contents

require "thor"
require "fileutils"
require "beaker/subcommands/subcommand_util"

module Beaker
  class Subcommand < Thor
    SubcommandUtil = Beaker::Subcommands::SubcommandUtil

    desc "init", "Initialises the beaker test environment configuration"
    option :hypervisor, :type => :string, :required => true
    long_desc <<-LONGDESC
      Initialises a beaker environment configuration
    LONGDESC
    def init()
      SubcommandUtil.verify_init_args(options)
      SubcommandUtil.require_tasks()
      SubcommandUtil.init_hypervisor(options)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
beaker-3.11.0 lib/beaker/subcommand.rb
beaker-3.10.0 lib/beaker/subcommand.rb
beaker-3.9.0 lib/beaker/subcommand.rb
beaker-3.8.0 lib/beaker/subcommand.rb