specinfra 2.63.3 → 2.64.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6913dffbfc7736d1adc170584b35979d2f6c5876
4
- data.tar.gz: 96545f9830d0df11809899e2037477d57f3a0ed9
3
+ metadata.gz: 2bb804941b79318209f8ab29b2d903ac67504719
4
+ data.tar.gz: 3d4017d83c0e2b2dd098d43d645ba984fdc84b2e
5
5
  SHA512:
6
- metadata.gz: a28eefb8b3722c7b67dab7d988054ef5a2f02bff5a75d267b0839300152b0770a59d7dfcb46aefcdabd92d66685ca297ae10e488eb2760a5ae721d5e339bf85f
7
- data.tar.gz: bae3ff31128828ed4a393cfb5c74d2aee9dc3e18151fe69751f7ecf2a45d8de49e2ae2fdb86d675e8d6b56a4b8454424718ee52ba0be941484d6a5e80c5aa3be
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
 
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.63.3"
2
+ VERSION = "2.64.0"
3
3
  end
@@ -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.63.3
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 00:00:00.000000000 Z
11
+ date: 2016-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp