class Eddy::CLI

Command Line Interface for Eddy

Public Instance Methods

segment(path) click to toggle source

@param path [String] @return [void]

# File lib/eddy/cli.rb, line 19
def segment(path)
  path = File.expand_path(path)
  builder = Eddy::Build::SegmentBuilder.from_file(path)
  result = builder.build(build_elements: options["build-elements"])
  puts("Segment class generated: #{result}")
  exit(0)
end
set(path) click to toggle source

@param path [String] @return [void]

# File lib/eddy/cli.rb, line 30
def set(path)
  path = File.expand_path(path)
  builder = Eddy::Build::TransactionSetBuilder.from_file(path)
  result = builder.build()
  puts("Transaction Set class generated: #{result}")
  exit(0)
end
version() click to toggle source

@return [void]

# File lib/eddy/cli.rb, line 10
def version()
  puts("Eddy version #{Eddy::VERSION}")
  exit(0)
end