diff options
author | adamedx <admed@opscode.com> | 2013-01-25 16:33:43 -0800 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-02-19 09:32:06 -0800 |
commit | 63d34bb7887606ee5d55ad70264ff14a90aa3f09 (patch) | |
tree | b2cb0ecabe8bc73195f46bb8e631374207e72ec7 /lib/chef/resource/batch.rb | |
parent | 5e9dad16efadd17c046654895095dcb7d2052612 (diff) | |
download | chef-63d34bb7887606ee5d55ad70264ff14a90aa3f09.tar.gz |
OC-4739: OC-4748: Create powershell and batch providers in core Chef
Diffstat (limited to 'lib/chef/resource/batch.rb')
-rw-r--r-- | lib/chef/resource/batch.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/chef/resource/batch.rb b/lib/chef/resource/batch.rb new file mode 100644 index 0000000000..b44489c549 --- /dev/null +++ b/lib/chef/resource/batch.rb @@ -0,0 +1,32 @@ +# +# Author:: Adam Edwards (<adamed@opscode.com>) +# Copyright:: Copyright (c) 2013 Opscode, Inc. +# License:: Apache License, Version 2.0 +# +# 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 'chef/resource/windows_system_script' +require 'chef/mixin/windows_architecture_helper' + +class Chef + class Resource + class Batch < Chef::Resource::WindowsSystemScript + + def initialize(name, run_context=nil) + super(name, run_context, :batch, "cmd.exe") + end + + end + end +end |