Sha256: fc3d9130ff779808cafab688637e730be95e72893784adb14af905b31909c2dd
Contents?: true
Size: 920 Bytes
Versions: 9
Compression:
Stored size: 920 Bytes
Contents
require_relative 'dummy_knife.rb' module Context module Knife class DefaultKnifeContext < Chef::Knife include Context::CommandHelper banner "knife default knife context" deps do end option :context_name, :long => '--context-name VALUE', :boolean => false, :description => "The name of the context we running on" option :context_folder, :long => '--context-path VALUE', :description => "Path of the context" option :organisation_name, :long => '--organisation-name VALUE', :description => "Organisation name of the context" def run if config[:context_name] context_log "Running on context #{config[:context_name]}, config = #{config.inspect}\n#{name_args}" else warning_context_log self, "Running on context without name" end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems