Sha256: 133569fbf6058f4e7dbcfa61cd3b4357e5b40b9c48dfeaa2596fac84f9a4b4cd

Contents?: true

Size: 1.03 KB

Versions: 48

Compression:

Stored size: 1.03 KB

Contents

module Ridley
  module CommandContext
    # Context class for generating an uninstall command for Unix based OSes
    class WindowsUninstall < CommandContext::Windows
      template_file 'windows_uninstall_omnibus'

      # @return [Boolean]
      attr_reader :skip_chef

      # @option options [Boolena] :skip_chef (false)
      #   skip removal of the Chef package and the contents of the installation
      #   directory. Setting this to true will only remove any data and configurations
      #   generated by running Chef client.
      def initialize(options = {})
        super(options)
        options    = options.reverse_merge(skip_chef: false)
        @skip_chef = options[:skip_chef]
      end

      # The path to the Chef configuration directory on the target host
      #
      # @return [String]
      def config_directory
        "C:\\chef"
      end

      # The path to the Omnibus Chef installation on the target host
      #
      # @return [String]
      def install_directory
        "C:\\opscode\\chef"
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
ridley-2.0.0 lib/ridley/command_context/windows_uninstall.rb
ridley-1.7.1 lib/ridley/command_context/windows_uninstall.rb
ridley-1.7.0 lib/ridley/command_context/windows_uninstall.rb
ridley-1.6.0 lib/ridley/command_context/windows_uninstall.rb
ridley-1.5.3 lib/ridley/command_context/windows_uninstall.rb
ridley-1.2.6 lib/ridley/command_context/windows_uninstall.rb
ridley-1.5.2 lib/ridley/command_context/windows_uninstall.rb
ridley-1.5.1 lib/ridley/command_context/windows_uninstall.rb
ridley-1.5.0 lib/ridley/command_context/windows_uninstall.rb
ridley-1.2.5 lib/ridley/command_context/windows_uninstall.rb
ridley-1.4.1 lib/ridley/command_context/windows_uninstall.rb
ridley-1.4.0 lib/ridley/command_context/windows_uninstall.rb
ridley-1.3.2 lib/ridley/command_context/windows_uninstall.rb
ridley-1.3.1 lib/ridley/command_context/windows_uninstall.rb
ridley-1.3.0 lib/ridley/command_context/windows_uninstall.rb
ridley-1.0.3 lib/ridley/command_context/windows_uninstall.rb
ridley-1.2.4 lib/ridley/command_context/windows_uninstall.rb
ridley-1.2.3 lib/ridley/command_context/windows_uninstall.rb
ridley-1.2.2 lib/ridley/command_context/windows_uninstall.rb
ridley-1.2.1 lib/ridley/command_context/windows_uninstall.rb