Sha256: 3e5e56c12567d25c279798e688ff3df422a0e29dd333dba929773465b5517b22

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

# -*- encoding: utf-8 -*-
#
# Author:: Steven Murawski (<smurawski@chef.io>)
#
# Copyright (C) 2015, Chef Software
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require "kitchen/provisioner/chef_zero"

module Kitchen
  module Provisioner
    # Chef Zero provisioner to run in scheduled task on Windows
    class ChefZeroScheduledTask < ChefZero
      kitchen_provisioner_api_version 2

      plugin_version Kitchen::VERSION
      
      def install_command
        warn "This provisioner has been deprecated."
        warn "This is will run the default ChefZero provisioner."
        warn "The WinRM transport in Test-Kitchen 1.8 or newer now supports using scheduled tasks to run commands."
        warn "To execute this in a scheduled task, `elvated:true` in the transport configuration."
        super
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chef-zero-scheduled-task-0.2.0 lib/kitchen/provisioner/chef_zero_scheduled_task.rb