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

Version Path
deploy-context-2.13.39 x86_64-linux/lib/deploy-context/knife/default_knife_context.rb
deploy-context-2.13.38 x86_64-linux/lib/deploy-context/knife/default_knife_context.rb
deploy-context-2.13.36 x86_64-linux/lib/deploy-context/knife/default_knife_context.rb
deploy-context-2.13.35 x86_64-linux/lib/deploy-context/knife/default_knife_context.rb
deploy-context-2.13.34 x86_64-linux/lib/deploy-context/knife/default_knife_context.rb
deploy-context-2.13.26 /home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/knife/default_knife_context.rb
deploy-context-2.13.25 /home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/knife/default_knife_context.rb
deploy-context-2.13.17 /home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/knife/default_knife_context.rb
deploy-context-2.13.8 /src/libraries/deploy-context/helpers/../../../libraries/deploy-context/knife/default_knife_context.rb