Sha256: 9710f028a66604d148fe93e9e97ed85714a8047284ba06aa99cdff8a34ca47d0
Contents?: true
Size: 984 Bytes
Versions: 4
Compression:
Stored size: 984 Bytes
Contents
# encoding: utf-8 # author: Adam Leff require 'thor' module Habitat class HabitatProfileCLI < Thor namespace 'habitat profile' desc 'create PATH', 'Create a Habitat artifact for the profile found at PATH' option :output_dir, type: :string, required: false, desc: 'Directory in which to save the generated Habitat artifact. Default: current directory' def create(path) puts options Habitat::Profile.create(path, options) end desc 'upload PATH', 'Create a Habitat artifact for the profile found at PATH, and upload it to a Habitat Depot' def upload(path) Habitat::Profile.upload(path, options) end end class HabitatCLI < Inspec::BaseCLI namespace 'habitat' desc 'profile', 'Manage InSpec profiles as Habitat artifacts' subcommand 'profile', HabitatProfileCLI end Inspec::Plugins::CLI.add_subcommand(HabitatCLI, 'habitat', 'habitat SUBCOMMAND ...', 'Commands for InSpec + Habitat Integration', {}) end
Version data entries
4 entries across 4 versions & 1 rubygems