Class: Masking::Cli

Inherits:
Object
  • Object
show all
Defined in:
lib/masking/cli.rb,
lib/masking/cli/error_message.rb

Defined Under Namespace

Classes: ErrorMessage

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Cli

Returns a new instance of Cli.



10
11
12
# File 'lib/masking/cli.rb', line 10

def initialize(argv)
  @argv = argv
end

Instance Method Details

#runObject



14
15
16
17
18
19
20
# File 'lib/masking/cli.rb', line 14

def run
  option_parser.parse(argv)
  Masking.run
rescue Masking::Error => error
  warn(Masking::Cli::ErrorMessage.new(error).message(config_file_path: Masking.config.target_columns_file_path))
  exit(false)
end