Skip to content

Commit

Permalink
Updating chef-winrm-fs
Browse files Browse the repository at this point in the history
Signed-off-by: John McCrae <[email protected]>
  • Loading branch information
johnmccrae committed Feb 3, 2025
1 parent 03e514c commit 31e9c17
Show file tree
Hide file tree
Showing 14 changed files with 1,219 additions and 0 deletions.
39 changes: 39 additions & 0 deletions chef-winrm-fs.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# frozen_string_literal: true

require 'date'

version = File.read(File.expand_path('VERSION', __dir__)).strip

Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'chef-winrm-fs'
s.version = version
s.date = Date.today.to_s

s.author = ['Shawn Neal', 'Matt Wrock']
s.email = ['[email protected]', '[email protected]']
s.homepage = 'http://github.com/WinRb/winrm-fs'

s.summary = 'WinRM File System'
s.description = <<-EOF
Ruby library for file system operations via Windows Remote Management
EOF
s.license = 'Apache-2.0'

s.files = Dir.glob('{bin,lib}/**/*') + %w[LICENSE README.md]
s.require_path = 'lib'
s.rdoc_options = %w[-x test/ -x examples/]
s.extra_rdoc_files = %w[README.md LICENSE]

s.bindir = 'bin'
s.executables = ['rwinrmcp']
s.required_ruby_version = '>= 3.0'
s.add_runtime_dependency 'chef-winrm', '>= 2.3.10'
s.add_runtime_dependency 'erubi', '>= 1.7'
s.add_runtime_dependency 'logging', ['>= 1.6.1', '< 3.0']
s.add_runtime_dependency 'rubyzip', '~> 2.0'
s.add_development_dependency 'pry'
s.add_development_dependency 'rake', '>= 13.2.1'
s.add_development_dependency 'rspec', '~> 3.0'
s.add_development_dependency 'rubocop', '~> 1.26.0'
end
29 changes: 29 additions & 0 deletions lib/chef-winrm-fs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# frozen_string_literal: true

#
# Copyright 2015 Shawn Neal <[email protected]>
#
# 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-winrm' unless defined?(WinRM::Connection)
require 'logger'
require 'pathname' unless defined?(Pathname)
require_relative 'chef-winrm-fs/exceptions'
require_relative 'chef-winrm-fs/file_manager'

module WinRM
# WinRM File System
module FS
# Top level module code
end
end
Loading

0 comments on commit 31e9c17

Please sign in to comment.