Sha256: 06a8cc04c78d612251844ffb96882a299b45f411dfa2e863f0db01328e3f8224
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
require 'hammer_cli_foreman/location' require 'hammer_cli_foreman_puppet/references' require 'hammer_cli_foreman_puppet/command_extensions/location' module HammerCLIForemanPuppet module LocationAddAssociatedCommand def self.included(base) HammerCLIForemanPuppet::AssociatingCommands::PuppetEnvironment.extend_command(base) base.create_subcommand end end class Location < HammerCLIForemanPuppet::Command class InfoCommand < HammerCLIForemanPuppet::InfoCommand output do HammerCLIForemanPuppet::References.environments(self) end end end HammerCLIForeman::Location::CreateCommand.extend_with( HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments.new ) HammerCLIForeman::Location::UpdateCommand.extend_with( HammerCLIForemanPuppet::CommandExtensions::PuppetEnvironments.new ) HammerCLIForeman::Location::InfoCommand.extend_with( HammerCLIForemanPuppet::CommandExtensions::LocationInfo.new ) HammerCLIForeman::Location.class_eval do extend HammerCLIForemanPuppet::AssociatingCommands::ExtendCommands include HammerCLIForemanPuppet::LocationAddAssociatedCommand end end
Version data entries
3 entries across 3 versions & 1 rubygems