Class: Victor::CLI::Commands::Convert

Inherits:
Base
  • Object
show all
Defined in:
lib/victor/cli/commands/convert.rb

Instance Method Summary collapse

Instance Method Details

#runObject



23
24
25
26
27
28
29
30
31
32
# File 'lib/victor/cli/commands/convert.rb', line 23

def run
  validate_template template if template

  if ruby_file
    File.write ruby_file, code
    say "Saved #{ruby_file}"
  else
    puts code
  end
end