Class: Confetti::CLI
- Inherits:
-
Thor
- Object
- Thor
- Confetti::CLI
- Defined in:
- lib/confetti/cli.rb
Instance Method Summary collapse
Instance Method Details
#generate(output_file) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/confetti/cli.rb', line 6 def generate(output_file) config_xml = File.join(Dir.pwd, "config.xml") config = Confetti::Config.new(config_xml) msg = "write_#{ output_file }".to_sym begin config.send msg rescue fail "Confetti Failed: format #{ output_file } unsupported" end end |