Sha256: 7b3f8432e9ea28da457570e3d1b5909780943221349226d25df638094b5c814a
Contents?: true
Size: 771 Bytes
Versions: 2
Compression:
Stored size: 771 Bytes
Contents
# frozen_string_literal: true require "thor" require "fileutils" module Manifolds # CLI provides command line interface functionality # for creating and managing umbrella projects for data management. class CLI < Thor desc "new_umbrella NAME", "Generate a new umbrella project for data management" def new_umbrella(name) directory_path = "./#{name}/projects" FileUtils.mkdir_p(directory_path) puts "Created umbrella project '#{name}' with a projects directory." # Generate Gemfile inside the new umbrella project File.open("./#{name}/Gemfile", "w") do |file| file.puts "source 'https://rubygems.org'" file.puts "gem 'thor'" end puts "Generated Gemfile for the umbrella project." end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
manifolds-0.0.4 | lib/manifolds/cli.rb |
manifolds-0.0.3 | lib/manifolds/cli.rb |