duplicati 2.0.0 → 2.0.1

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: e2763cab2cbf50ef80682a8f5b49e201fc1793be
4
- data.tar.gz: 237e8ae9aaec837a9248d1c3a52fde316334fa9c
3
+ metadata.gz: 3243fec87ce88a6b75a796a9e9696536c1f37983
4
+ data.tar.gz: 2080818ee88cd826622d3701239642e76b917b14
5
5
  SHA512:
6
- metadata.gz: cc07ac10f4531affcce90abf23179b29fe7e099ceca409dfcb718b19b3cba43b75fcb0b70d110b5479066025c84e7d51f6c9aa3002621de4a540bb6765dd9475
7
- data.tar.gz: d427a4e22a3afd4811e058aa099d518d8c7e0c04636603e422d2399428135e0ba0e78b7ba2b7de10834ca03d534ae144cfeedb4bfae673b27db6165947c6b49d
6
+ metadata.gz: cf6381818acf5f5f38f28e48a82dd0f3bd8c8f63f708d8e89a59b076a6c8ef338268ca71456f1e90b5c07a8d112683f61c2b3fb0c0ebd5811adbe690f87c16a6
7
+ data.tar.gz: a34292ff2e2c50f16bc799be145d7ed86aca0f60813302774f00a75bf80921ab16ff5f8ebce1dacd11248c56a95d84e959de3f916e4934af03fd01b94b02ddae
@@ -70,7 +70,15 @@ class Duplicati
70
70
  private
71
71
 
72
72
  def duplicati_path(path_from_options)
73
- path_from_options || ENV["DUPLICATI_PATH"] || (ENV["OS"] == "Windows_NT" ? "/Program Files/Duplicati/Duplicati.CommandLine" : "duplicati-commandline")
73
+ path_from_options || ENV["DUPLICATI_PATH"] || (windows? ? "/Program Files/Duplicati/#{duplicati_executable_name}" : duplicati_executable_name)
74
+ end
75
+
76
+ def duplicati_executable_name
77
+ windows? ? "Duplicati.CommandLine" : "duplicati-commandline"
78
+ end
79
+
80
+ def windows?
81
+ ENV["OS"] == "Windows_NT"
74
82
  end
75
83
 
76
84
  def execute(command)
@@ -1,3 +1,3 @@
1
1
  class Duplicati
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
@@ -16,7 +16,8 @@ describe Duplicati do
16
16
  end
17
17
 
18
18
  it "has default duplicati path" do
19
- File.basename(Duplicati.new.opts[:duplicati_path]).should == "Duplicati.CommandLine"
19
+ duplicati = Duplicati.new
20
+ File.basename(duplicati.opts[:duplicati_path]).should == duplicati.send(:duplicati_executable_name)
20
21
  end
21
22
 
22
23
  it "allows to specify duplicati path via options" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duplicati
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarmo Pertman