Sha256: 91fdcee295df49e6950339b22ef567edc3267cf64ba4bc959fad24f8ad7625a9
Contents?: true
Size: 897 Bytes
Versions: 1
Compression:
Stored size: 897 Bytes
Contents
#!/usr/bin/env ruby require "pathname" bin_file = Pathname.new(__FILE__).realpath $:.unshift File.expand_path("../../lib", bin_file) require 'authentication_identifier_transposer' require 'thor' class RotateConfigCLI < Thor desc "rotate [OPTIONS]", "rotate configurations" option :generator_config_file, :aliases => '-g', :desc => 'Configuration file of the generator' option :validator_config_file, :aliases => '-v', :desc => 'Configuration file of the validator' def rotate raise 'generator_config_file must be specified' unless options['generator_config_file'] rotator = AuthenticationIdentifierTransposer::ConfigRotator.new rotator.rotate_json_config_files(generator_file_name: options['generator_config_file'], validator_file_name: options['validator_config_file']) end default_task :rotate end RotateConfigCLI.start(ARGV)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authentication_identifier_transposer-1.0.0 | bin/rotate-configs |