manifolds 0.0.2 → 0.0.3
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/bin/manifolds +1 -1
- data/lib/manifolds/cli.rb +15 -13
- data/lib/manifolds/version.rb +1 -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: 7d3debb4c2931f26431fbed6b07c172c01f0add99f62171af8feff42141c2ad4
|
4
|
+
data.tar.gz: 99990fc3b95e6bdd9b00c38d80a3994d5ba83fa44009a3577afe3d5449f0b98c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce3257743f9a7ace3f2c1c3e6aa3f8e83b8f2af83901d75fc2f6cebda59826d100926b056e1c32ba14dd6ccc39584e691fe6c85f2d8e7d185774d2765dd53d27
|
7
|
+
data.tar.gz: 6b9e507b4f5dcd1e40254453080999c7fae41b9f0adbfd69059f392db88b2c1dc679caf65b09020668e5935d108cdc6e50836c9acade82215f50bcb4cc710d7a
|
data/bin/manifolds
CHANGED
data/lib/manifolds/cli.rb
CHANGED
@@ -3,19 +3,21 @@
|
|
3
3
|
require "thor"
|
4
4
|
require "fileutils"
|
5
5
|
|
6
|
-
|
7
|
-
#
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
6
|
+
module Manifolds
|
7
|
+
# CLI provides command line interface functionality
|
8
|
+
# for creating and managing umbrella projects for data management.
|
9
|
+
class CLI < Thor
|
10
|
+
desc "new_umbrella NAME", "Generate a new umbrella project for data management"
|
11
|
+
def new_umbrella(name)
|
12
|
+
directory_path = "./#{name}/projects"
|
13
|
+
FileUtils.mkdir_p(directory_path)
|
14
|
+
puts "Created umbrella project '#{name}' with a projects directory."
|
15
|
+
# Generate Gemfile inside the new umbrella project
|
16
|
+
File.open("./#{name}/Gemfile", "w") do |file|
|
17
|
+
file.puts "source 'https://rubygems.org'"
|
18
|
+
file.puts "gem 'thor'"
|
19
|
+
end
|
20
|
+
puts "Generated Gemfile for the umbrella project."
|
18
21
|
end
|
19
|
-
puts "Generated Gemfile for the umbrella project."
|
20
22
|
end
|
21
23
|
end
|
data/lib/manifolds/version.rb
CHANGED