specinfra 2.63.3 → 2.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/specinfra/command/base/file.rb +1 -0
- data/lib/specinfra/version.rb +1 -1
- data/spec/command/base/file_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2bb804941b79318209f8ab29b2d903ac67504719
|
|
4
|
+
data.tar.gz: 3d4017d83c0e2b2dd098d43d645ba984fdc84b2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9bc30501ffa3cdf8946af6dd78fb2c578907fb614a3aa042dc33f6f2570f39c743ab105a10209dac29d6dfdd1c51901c80a826964f3253db09e89721554b49b
|
|
7
|
+
data.tar.gz: 441bf4179f7018a365151fbfa088821568c28210a41929ad61aca1ec16cc6c656b959466b196fe58d6fa90575db44d89440c601e41cb7b3ebca9ebd3f3c3d367
|
|
@@ -178,6 +178,7 @@ class Specinfra::Command::Base::File < Specinfra::Command::Base
|
|
|
178
178
|
def link_to(link, target, options = {})
|
|
179
179
|
option = '-s'
|
|
180
180
|
option << 'f' if options[:force]
|
|
181
|
+
option << 'n' if options[:no_dereference]
|
|
181
182
|
"ln #{option} #{escape(target)} #{escape(link)}"
|
|
182
183
|
end
|
|
183
184
|
|
data/lib/specinfra/version.rb
CHANGED
|
@@ -70,6 +70,14 @@ describe get_command(:link_file_to, '/link', '/target', :force => true) do
|
|
|
70
70
|
it { should eq 'ln -sf /target /link' }
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
+
describe get_command(:link_file_to, '/link', '/target', :no_dereference => true) do
|
|
74
|
+
it { should eq 'ln -sn /target /link' }
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
describe get_command(:link_file_to, '/link', '/target', :force => true, :no_dereference => true) do
|
|
78
|
+
it { should eq 'ln -sfn /target /link' }
|
|
79
|
+
end
|
|
80
|
+
|
|
73
81
|
describe get_command(:remove_file, '/tmp') do
|
|
74
82
|
it { should eq 'rm -rf /tmp' }
|
|
75
83
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: specinfra
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.64.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gosuke Miyashita
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-10-
|
|
11
|
+
date: 2016-10-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: net-scp
|