henry-container 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/henry-ruby-container +2 -2
- data/lib/henry/container/version.rb +1 -1
- data/lib/henry/container.rb +2 -2
- metadata +1 -1
data/bin/henry-ruby-container
CHANGED
@@ -16,9 +16,9 @@ where [options] are:
|
|
16
16
|
BANNER
|
17
17
|
|
18
18
|
opt :out, "Custom name for the results file.", :default => 'out.henry'
|
19
|
-
opt :"out-dir", "Custom dir path where the results will be written", :default => '
|
19
|
+
opt :"out-dir", "Custom dir path where the results will be written", :default => '.'
|
20
20
|
opt :in, "Custom name for the input file.", :default => 'in.henry'
|
21
|
-
opt :"in-dir", "Custom dir path where the input will be read from.", :default => '
|
21
|
+
opt :"in-dir", "Custom dir path where the input will be read from.", :default => '.'
|
22
22
|
end
|
23
23
|
|
24
24
|
Henry::Container.new(opts).execute
|
data/lib/henry/container.rb
CHANGED
@@ -50,14 +50,14 @@ module Henry
|
|
50
50
|
#
|
51
51
|
# @return [String] the input file path.
|
52
52
|
def input_file_path
|
53
|
-
"#{@opts[:"in-dir"]}
|
53
|
+
"#{@opts[:"in-dir"]}/#{@opts[:in]}"
|
54
54
|
end
|
55
55
|
|
56
56
|
# Returns the output file path based on the given options.
|
57
57
|
#
|
58
58
|
# @return [String] the output file path.
|
59
59
|
def output_file_path
|
60
|
-
"#{@opts[:"out-dir"]}
|
60
|
+
"#{@opts[:"out-dir"]}/#{@opts[:out]}"
|
61
61
|
end
|
62
62
|
|
63
63
|
# Executes required validations before execution.
|