Class: OpsBuild::Commands::Generate

Inherits:
Thor
  • Object
show all
Defined in:
lib/ops_build/commands/generate.rb

Instance Method Summary collapse

Instance Method Details

#box_indexObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/ops_build/commands/generate.rb', line 10

def box_index
  BoxIndexer.new(dir:      options[:directory],
                 out:      options[:json_path],
                 name:     options[:name],
                 desc:     options[:desc],
                 root_url: options[:root_url]).index!
rescue => e
  OpsBuild.logger.error(e.message)
  exit(1)
end