Class: HaasuSutoonData::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/haasu_sutoon_data/cli.rb

Overview

command-line interface class

Instance Method Summary collapse

Instance Method Details

#generate(out_file) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/haasu_sutoon_data/cli.rb', line 6

def generate(out_file)
  if File.exist?(out_file)
    puts "#{out_file} already exists"
    exit 1
  end

  HaasuSutoonData.generate_file(out_file)
end