bibliotech 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bibliotech/application.rb +3 -2
- data/lib/bibliotech/cli.rb +1 -1
- data/lib/bibliotech/command_generator.rb +1 -1
- 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: 690fcaf4bdcb23d62cdbde63f6765e4b3d43c07b
|
4
|
+
data.tar.gz: b34213d9b89e14fa12bc0bd13113b88e2ef3a869
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d7b36605be4d66e5de21698bea201607aec9aa6f3a099c1d3481fbd3e7173b246a4ce432b526755efee4e1295993f60d586991292b0a46e42a416230eb6f5ff
|
7
|
+
data.tar.gz: f2b891a399a6e8c8612a4b46bfdd7945d2583f635c30fc3206439903a3d0cafbf7a5bbc378e3f02cbc868c9957e8a1ca5aca1099c89ca685d5c1440ecb84a0b8
|
@@ -9,7 +9,8 @@ module BiblioTech
|
|
9
9
|
attr_accessor :config_path, :config_hash
|
10
10
|
attr_writer :shell
|
11
11
|
|
12
|
-
def initialize
|
12
|
+
def initialize(config = nil)
|
13
|
+
@configs = config || {}
|
13
14
|
@memos = {}
|
14
15
|
@shell = Caliph.new
|
15
16
|
@config_path = %w{/etc/bibliotech /usr/share/bibliotech ~/.bibliotech ./.bibliotech ./config/bibliotech}
|
@@ -31,7 +32,7 @@ module BiblioTech
|
|
31
32
|
end
|
32
33
|
|
33
34
|
def config
|
34
|
-
@memos[:config] ||= Config.new(valise)
|
35
|
+
@memos[:config] ||= Config.new(valise).merge(@configs)
|
35
36
|
end
|
36
37
|
|
37
38
|
def log
|
data/lib/bibliotech/cli.rb
CHANGED
@@ -39,7 +39,7 @@ module BiblioTech
|
|
39
39
|
options = config.merge(options || {})
|
40
40
|
local_path = options.local_file(filename)
|
41
41
|
cmd("mkdir") do |cmd|
|
42
|
-
cmd.options << "--parents
|
42
|
+
cmd.options << "-p" #ok Mac OS X doesn't have --parents in its mkdir
|
43
43
|
cmd.options << File::dirname(local_path)
|
44
44
|
end & cmd("scp") do |cmd|
|
45
45
|
options.optionally{ cmd.options << "-i #{options.id_file(remote)}" }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bibliotech
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Dorn
|
@@ -129,7 +129,7 @@ rdoc_options:
|
|
129
129
|
- --main
|
130
130
|
- doc/README
|
131
131
|
- --title
|
132
|
-
- bibliotech-0.3.
|
132
|
+
- bibliotech-0.3.2 Documentation
|
133
133
|
require_paths:
|
134
134
|
- lib/
|
135
135
|
required_ruby_version: !ruby/object:Gem::Requirement
|