Skip to content

Commit 49ed3a6

Browse files
authored
Jfm/winrm fs update 2 (#6)
* Updating chef-winrm-fs Signed-off-by: John McCrae <john.mccrae@progress.com>
1 parent d6ffa80 commit 49ed3a6

22 files changed

+20
-20
lines changed

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ AllCops:
44

55
Naming/FileName:
66
Exclude:
7-
- 'lib/winrm-fs.rb'
7+
- 'lib/chef-winrm-fs.rb'
88

99
Style/Encoding:
1010
Enabled: true

.rubocop_todo.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Metrics/PerceivedComplexity:
3434
Naming/HeredocDelimiterNaming:
3535
Exclude:
3636
- 'spec/matchers.rb'
37-
- 'winrm-fs.gemspec'
37+
- 'chef-winrm-fs.gemspec'
3838

3939
# Offense count: 2
4040
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods.
@@ -47,7 +47,7 @@ Style/FormatStringToken:
4747
# Configuration parameters: AllowedReceivers.
4848
Style/HashEachMethods:
4949
Exclude:
50-
- 'lib/winrm-fs/core/file_transporter.rb'
50+
- 'lib/chef-winrm-fs/core/file_transporter.rb'
5151

5252
# Offense count: 5
5353
# This cop supports unsafe auto-correction (--auto-correct-all).
@@ -56,21 +56,21 @@ Style/HashEachMethods:
5656
Style/NumericPredicate:
5757
Exclude:
5858
- 'spec/**/*'
59-
- 'lib/winrm-fs/core/file_transporter.rb'
60-
- 'lib/winrm-fs/file_manager.rb'
59+
- 'lib/chef-winrm-fs/core/file_transporter.rb'
60+
- 'lib/chef-winrm-fs/file_manager.rb'
6161

6262
# Offense count: 1
6363
# Configuration parameters: AllowedMethods.
6464
# AllowedMethods: respond_to_missing?
6565
Style/OptionalBooleanParameter:
6666
Exclude:
67-
- 'lib/winrm-fs/file_manager.rb'
67+
- 'lib/chef-winrm-fs/file_manager.rb'
6868

6969
# Offense count: 1
7070
# This cop supports safe auto-correction (--auto-correct).
7171
Style/RedundantBegin:
7272
Exclude:
73-
- 'lib/winrm-fs/file_manager.rb'
73+
- 'lib/chef-winrm-fs/file_manager.rb'
7474

7575
# Offense count: 4
7676
# This cop supports unsafe auto-correction (--auto-correct-all).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
## Uploading files
77
Files may be copied from the local machine to the winrm endpoint. Individual files or directories, as well as arrays of files and directories may be specified. Data from a `StringIO` object may also be uploaded to a remote file.
88
```ruby
9-
require 'winrm-fs'
9+
require 'chef-winrm-fs'
1010

1111
connection = WinRM::Connection.new(...
1212
file_manager = WinRM::FS::FileManager.new(connection)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.6
1+
1.3.7

bin/rwinrmcp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
$LOAD_PATH.push File.expand_path('../../lib', __FILE__)
2323

2424
require 'io/console'
25-
require 'winrm-fs'
25+
require 'chef-winrm-fs'
2626

2727
def help_msg
2828
puts 'Usage: rwinrmcp sourcefile user@host:directory/targetfile'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
2828
s.bindir = 'bin'
2929
s.executables = ['rwinrmcp']
3030
s.required_ruby_version = '>= 3.0'
31-
s.add_runtime_dependency 'chef-winrm', '>= 2.3.10'
31+
s.add_runtime_dependency 'chef-winrm', '>= 2.3.11'
3232
s.add_runtime_dependency 'erubi', '>= 1.7'
3333
s.add_runtime_dependency 'logging', ['>= 1.6.1', '< 3.0']
3434
s.add_runtime_dependency 'rubyzip', '~> 2.0'

lib/winrm-fs.rb renamed to lib/chef-winrm-fs.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18-
require 'winrm' unless defined?(WinRM::Connection)
18+
require 'chef-winrm' unless defined?(WinRM::Connection)
1919
require 'logger'
2020
require 'pathname' unless defined?(Pathname)
21-
require_relative 'winrm-fs/exceptions'
22-
require_relative 'winrm-fs/file_manager'
21+
require_relative 'chef-winrm-fs/exceptions'
22+
require_relative 'chef-winrm-fs/file_manager'
2323

2424
module WinRM
2525
# WinRM File System

lib/winrm-fs/core/file_transporter.rb renamed to lib/chef-winrm-fs/core/file_transporter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
require 'securerandom' unless defined?(SecureRandom)
2424
require 'stringio' unless defined?(StringIO)
2525

26-
require 'winrm/exceptions'
27-
require 'winrm-fs/core/tmp_zip'
26+
require 'chef-winrm/exceptions'
27+
require 'chef-winrm-fs/core/tmp_zip'
2828

2929
module WinRM
3030
module FS

0 commit comments

Comments
 (0)