Sha256: 9698db4a32a9d4189e3d6411f56016744f0674d065872149b3e779ed72573f8b
Contents?: true
Size: 733 Bytes
Versions: 2
Compression:
Stored size: 733 Bytes
Contents
# frozen_string_literal: true module Roro # Where all the generation, configuration, greenfielding happens. class CLI < Thor desc 'generate:containers', 'Generate containers.' map 'generate:containers' => 'generate_containers' method_options :containers => :array def generate_containers(*containers) mise = Roro::CLI.mise containers = options['containers'] || (containers.empty? ? %w[frontend backend database] : containers) create_file("#{mise}/scripts/.keep") containers.each { |s| s.split('/').last }.each do |container| create_file("#{mise}/containers/#{container}/scripts/.keep") create_file("#{mise}/containers/#{container}/env/.keep") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roro-0.3.33 | lib/roro/cli/generate/generate_containers.rb |
roro-0.3.30 | lib/roro/cli/generate/generate_containers.rb |