fedux_org-stdlib 0.6.44 → 0.6.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/fedux_org_stdlib/file_template.rb +5 -3
- data/lib/fedux_org_stdlib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0b710df8eb8a0bdb8422a96b6328d5d1d1d38b0
|
4
|
+
data.tar.gz: 3d3e641290c629d40d94e0e6aa6ae6244f8bbf3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f693b5182a544a069a4b2a6598b051c6b9cbcc0448aae16f0be2e0ba27f3e85f6f2b74fb63d94145924bd9d0b8703e36cc5c89fe2053d6321dcde00d985da73d
|
7
|
+
data.tar.gz: b473d0686fcd13a36a7763b8cd29663364e0e4125bdeed224d102bd03d7fa1484230c410cd88759eb1f6c340aaac10b913d1aff9ad96b6164fdf4ffd921ae560
|
data/Gemfile.lock
CHANGED
@@ -53,7 +53,7 @@ module FeduxOrgStdlib
|
|
53
53
|
# option1: 'data2'
|
54
54
|
class FileTemplate
|
55
55
|
|
56
|
-
attr_reader :working_directory, :logger, :file, :content
|
56
|
+
attr_reader :working_directory, :output_directory, :logger, :file, :content
|
57
57
|
|
58
58
|
# Create a new instance of template
|
59
59
|
#
|
@@ -73,10 +73,12 @@ module FeduxOrgStdlib
|
|
73
73
|
def initialize(
|
74
74
|
file: nil,
|
75
75
|
logger: FeduxOrgStdlib::Logging::Logger.new,
|
76
|
-
working_directory: Dir.getwd
|
76
|
+
working_directory: Dir.getwd,
|
77
|
+
output_directory: nil
|
77
78
|
)
|
78
79
|
@logger = logger
|
79
80
|
@working_directory = working_directory
|
81
|
+
@output_directory = output_directory || working_directory
|
80
82
|
|
81
83
|
@file ||= available_template_file
|
82
84
|
|
@@ -212,7 +214,7 @@ module FeduxOrgStdlib
|
|
212
214
|
public
|
213
215
|
|
214
216
|
def proposed_file
|
215
|
-
File.join
|
217
|
+
File.join output_directory, proposed_file_name
|
216
218
|
end
|
217
219
|
|
218
220
|
def proposed_extname
|