Class: Ank3::Cli
- Inherits:
-
Thor
- Object
- Thor
- Ank3::Cli
- Defined in:
- lib/ank3/cli.rb
Instance Method Summary collapse
- #convert(file, file_name = "cards") ⇒ Object
- #generate_boilerplate(file_name = "ank3.yml", number = 1) ⇒ Object
Instance Method Details
#convert(file, file_name = "cards") ⇒ Object
4 5 6 |
# File 'lib/ank3/cli.rb', line 4 def convert(file, file_name = "cards") Ank3::Collection.new(file).write_to_file(file_name) end |
#generate_boilerplate(file_name = "ank3.yml", number = 1) ⇒ Object
9 10 11 |
# File 'lib/ank3/cli.rb', line 9 def generate_boilerplate(file_name = "ank3.yml", number = 1) Ank3::Collection.generate_boilerplate_file(file_name, number) end |