Sha256: 53392659909a511604ab1c8d27690aa6be46b02b7e08e19e3f708a70295fcb68
Contents?: true
Size: 865 Bytes
Versions: 6
Compression:
Stored size: 865 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({ requirements: { gems: { # The `type: {in: ...}` syntax for the `name` option requires QB 0.4 qb: '>= 0.4.0.dev', } }, 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: { in: names, }, short: 'n', }, ], })
Version data entries
6 entries across 6 versions & 1 rubygems