Sha256: e1c4cd2d1026de434c8727974db1335b9c25df5081f607b2ef443e5a667120ca
Contents?: true
Size: 724 Bytes
Versions: 13
Compression:
Stored size: 724 Bytes
Contents
#!/usr/bin/env ruby require 'json' HERE = File.dirname(__FILE__) GITIGNORE_DIR = File.expand_path File.join HERE, '..', 'files', 'gitignore' names = Dir.chdir(GITIGNORE_DIR) do Dir['**/*.gitignore'].map {|path| path.match(/(.*)\.gitignore/)[1] } end puts JSON.pretty_generate({ save_options: false, default_dir: { find_up: '.gitignore', }, # TODO added this to preserve prefix from when role was named # `qb.gitignore`, might want to change once we sort all that out. # var_prefix: 'gitignore', vars: [ { name: "name", description: "name of gitignore.", required: true, type: { one_of: names, }, short: 'n', }, ], })
Version data entries
13 entries across 13 versions & 1 rubygems