Class: Gem2exe::Cli::LocalCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/gem2exe/cli/local_command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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