class EvJobGen::CLI

Public Class Methods

new(argv) click to toggle source
# File lib/ev_job_gen/cli.rb, line 11
def initialize(argv)
  @option = Option.new
  @option.parse!(argv)
end
run!(argv) click to toggle source
# File lib/ev_job_gen/cli.rb, line 6
def run!(argv)
  CLI.new(argv).run!
end

Public Instance Methods

run!() click to toggle source
# File lib/ev_job_gen/cli.rb, line 16
def run!
  yml = ManifestGen.gen(
    jobfile:    @option.jobfile,
    target:     @option.target,
    configfile: @option.config,
  )
  print yml
end