class Chef::Provider::Batch
Public Class Methods
new(new_resource, run_context)
click to toggle source
Calls superclass method
Chef::Provider::WindowsScript::new
# File lib/chef/provider/batch.rb, line 27 def initialize(new_resource, run_context) super(new_resource, run_context, ".bat") end
Public Instance Methods
command()
click to toggle source
# File lib/chef/provider/batch.rb, line 31 def command basepath = is_forced_32bit ? wow64_directory : run_context.node["kernel"]["os_info"]["system_directory"] interpreter_path = Chef::Util::PathHelper.join(basepath, interpreter) "\"#{interpreter_path}\" #{flags} \"#{script_file.path}\"" end
flags()
click to toggle source
# File lib/chef/provider/batch.rb, line 39 def flags new_resource.flags.nil? ? "/c" : new_resource.flags + " /c" end