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

Version Path
qb-0.3.25 roles/qb/git/ignore/meta/qb
qb-0.3.24 roles/qb/git/ignore/meta/qb
qb-0.3.23 roles/qb/git/ignore/meta/qb
qb-0.3.22 roles/qb/git/ignore/meta/qb
qb-0.3.21 roles/qb/git/ignore/meta/qb
qb-0.3.20 roles/qb/git/ignore/meta/qb
qb-0.3.19 roles/qb/git/ignore/meta/qb
qb-0.3.18 roles/qb/git/ignore/meta/qb
qb-0.3.17 roles/qb/git/ignore/meta/qb
qb-0.3.16 roles/qb/git/ignore/meta/qb
qb-0.3.15 roles/qb/git/ignore/meta/qb
qb-0.3.14 roles/qb/git/ignore/meta/qb
qb-0.3.13 roles/qb/git/ignore/meta/qb