Class: TerraspaceBundler::List

Inherits:
TB::CLI::Base
  • Object
show all
Defined in:
lib/terraspace_bundler/list.rb

Instance Method Summary collapse

Instance Method Details

#lockfileObject



18
19
20
# File 'lib/terraspace_bundler/list.rb', line 18

def lockfile
  Lockfile.instance
end

#runObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/terraspace_bundler/list.rb', line 3

def run
  file = TB.config.lockfile
  unless File.exist?(file)
    logger.info "No #{file} found".color(:red)
    logger.info "Maybe run: terraspace bundle"
    return
  end

  logger.info "Modules included by #{file}\n\n"
  lockfile.mods.each do |mod|
    logger.info "    #{mod.name}"
  end
  logger.info "\nUse `terraspace bundle info` to print more detailed information about a module"
end