Sha256: 731289911e85d902337dcf9cf6d2b9a4403f457f6471ac4c8dee9309d65beeb2
Contents?: true
Size: 718 Bytes
Versions: 1
Compression:
Stored size: 718 Bytes
Contents
# frozen_string_literal: true require "thor" require "fileutils" # 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
manifolds-0.0.2 | lib/manifolds/cli.rb |