Class: Completely::Commands::Generate

Inherits:
Base
  • Object
show all
Defined in:
lib/completely/commands/generate.rb

Instance Method Summary collapse

Methods inherited from Base

environment_config_path, environment_debug, option_function, param_config_path

Instance Method Details

#runObject



38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/completely/commands/generate.rb', line 38

def run
  wrap = args['--wrap']
  output = wrap ? wrapper_function(wrap) : script

  if args['--install']
    install output
  elsif output_path == '-'
    show output
  else
    save output
  end
end