Sha256: 6cede9a303c63d84cebe22195b1dc982f77c2b43fe44c206590a994936c976ca
Contents?: true
Size: 1.21 KB
Versions: 5
Compression:
Stored size: 1.21 KB
Contents
class TerraspaceBundler::CLI class Bundle < TerraspaceBundler::Command terrafile_option = Proc.new { option :terrafile, default: ENV['TB_TERRAFILE'] || "Terrafile", desc: "Terrafile to use" } desc "list", "List bundled modules included by Terrafile." long_desc Help.text("bundle/list") terrafile_option.call def list TB::List.new(options).run end desc "info MOD", "Provide info about a bundled module." long_desc Help.text("bundle/info") terrafile_option.call def info(mod) TB::Info.new(options.merge(mod: mod)).run end desc "install", "Install modules from the Terrafile." long_desc Help.text("bundle/install") terrafile_option.call def install TB::Runner.new(options).run end desc "purge_cache", "Purge cache." long_desc Help.text("bundle/purge_cache") option :yes, aliases: :y, type: :boolean, desc: "bypass are you sure prompt" def purge_cache PurgeCache.new(options).run end desc "update [MOD]", "Update bundled modules." long_desc Help.text("bundle/update") terrafile_option.call def update(*mods) TB.update_mode = true TB::Runner.new(options.merge(mods: mods)).run end end end
Version data entries
5 entries across 5 versions & 1 rubygems