Class: Prepper::Cli

Inherits:
Object
  • Object
show all
Includes:
TTY::Option
Defined in:
lib/prepper/cli.rb

Instance Method Summary collapse

Instance Method Details

#runObject



15
16
17
18
19
20
21
# File 'lib/prepper/cli.rb', line 15

def run
  if params[:help]
    print help and exit
  else
    Prepper::Runner.run(File.read(params[:config_file]))
  end
end