atk_toolbox 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/atk/yaml_info_parser.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b085c0c6b1f5109a99966a5828ede775cfa553a90b59097a81ab43742968feca
|
4
|
+
data.tar.gz: 572848c31e6649a461a59832882ab9b6a6309d8e10b928eaec8b3f665e1a5453
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f3c3f88220d28d6ad10dc69b79e6a2f987f4f275ce1ed1d499f99eed4cbec0f1e17ab0426be2d970c61b822aaa8b81f49d93bb171763eac2c594303a6c5dc82
|
7
|
+
data.tar.gz: 2ac95b4eb4857fda2da309e5ddafad21114c3160c55c87c4724b3614535faaeaf4f46c7f05ff4813267ba6c7dbff32a29fe2411864d2f18ce06678549b2efab6
|
data/lib/atk/yaml_info_parser.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
require "yaml"
|
3
3
|
require_relative './cmd'
|
4
4
|
require_relative './os'
|
5
|
+
require 'fileutils'
|
5
6
|
|
6
7
|
#
|
7
8
|
# Create loaders for ruby code literal and console code literal
|
@@ -94,7 +95,7 @@ class Info
|
|
94
95
|
|
95
96
|
def self.init
|
96
97
|
# copy the default yaml to the current dir
|
97
|
-
FileUtils.cp(File.join(__dir__, "default_info.yaml"), Dir.pwd)
|
98
|
+
FileUtils.cp(File.join(__dir__, "default_info.yaml"), File.join(Dir.pwd, "info.yaml"))
|
98
99
|
end
|
99
100
|
|
100
101
|
# TODO: write tests for this function
|