Sha256: f853e005344a6b8415f44bab3fd5ee9f712a602654a969ba50a430d97b7ef29a

Contents?: true

Size: 326 Bytes

Versions: 5

Compression:

Stored size: 326 Bytes

Contents

#! /usr/bin/env ruby
#
# Add one or more domains to a given group, running the standard import checks
#
# Usage: script/add [GROUP] [DOMAIN(S)]

require './lib/gman/importer'

if ARGV.length < 2
  puts 'Usage: script/add [GROUP] [DOMAIN(S)]'
  exit 1
end

group = ARGV[0]
domains = ARGV.drop(1)

Gman.import(group => domains)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gman-7.0.2 script/add
gman-7.0.1 script/add
gman-7.0.0 script/add
gman-6.0.1 script/add
gman-6.0.0 script/add