class Gem2exe::Cli::LocalCommand

Public Instance Methods

execute() click to toggle source
# File lib/gem2exe/cli/local_command.rb, line 11
def execute
  Gem2exe.ensure_setup

  out_with_path = out || entrypoint

  path_expanded = if path
    File.expand_path(path)
  else
    Dir.pwd
  end

  builder = Builder.new path: path_expanded, entrypoint: entrypoint, out: out_with_path, cache_dir: cache_dir
  builder.build
end