omnistore 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -2
- data/lib/omnistore/storage/local/mountpoint.rb +8 -3
- data/lib/omnistore/version.rb +1 -1
- data/omnistore.gemspec +1 -0
- metadata +6 -5
data/.travis.yml
CHANGED
@@ -65,16 +65,21 @@ module OmniStore
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def move(src, dest, other = self, options = {})
|
68
|
+
force = options[:force]
|
69
|
+
opts = options.dup
|
70
|
+
opts.delete_if {|k, v| !FileUtils.have_option?(:mv, k)}
|
68
71
|
src_path = expand(src)
|
69
72
|
dest_path = expand(dest, other.dir)
|
70
|
-
FileUtils.mkdir_p(File.dirname(dest_path)) if
|
71
|
-
FileUtils.mv(src_path, dest_path,
|
73
|
+
FileUtils.mkdir_p(File.dirname(dest_path)) if force
|
74
|
+
FileUtils.mv(src_path, dest_path, opts)
|
72
75
|
end
|
73
76
|
|
74
77
|
def copy(src, dest, other = self, options = {})
|
78
|
+
opts = options.dup
|
79
|
+
opts.delete_if {|k, v| !FileUtils.have_option?(:copy, k)}
|
75
80
|
src_path = expand(src)
|
76
81
|
dest_path = expand(dest, other.dir)
|
77
|
-
FileUtils.copy(src_path, dest_path,
|
82
|
+
FileUtils.copy(src_path, dest_path, opts)
|
78
83
|
end
|
79
84
|
|
80
85
|
private
|
data/lib/omnistore/version.rb
CHANGED
data/omnistore.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omnistore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -111,7 +111,8 @@ files:
|
|
111
111
|
- spec/omnistore_spec.rb
|
112
112
|
- spec/spec_helper.rb
|
113
113
|
homepage: https://github.com/arukoh/omnistore
|
114
|
-
licenses:
|
114
|
+
licenses:
|
115
|
+
- MIT
|
115
116
|
post_install_message:
|
116
117
|
rdoc_options: []
|
117
118
|
require_paths:
|
@@ -124,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
125
|
version: '0'
|
125
126
|
segments:
|
126
127
|
- 0
|
127
|
-
hash:
|
128
|
+
hash: -243006579
|
128
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
130
|
none: false
|
130
131
|
requirements:
|
@@ -133,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
134
|
version: '0'
|
134
135
|
segments:
|
135
136
|
- 0
|
136
|
-
hash:
|
137
|
+
hash: -243006579
|
137
138
|
requirements: []
|
138
139
|
rubyforge_project:
|
139
140
|
rubygems_version: 1.8.25
|