Class: Gem2exe::Cli::RemoteCommand

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

Instance Method Summary collapse

Instance Method Details

#executeObject



13
14
15
16
17
18
19
20
21
22
# File 'lib/gem2exe/cli/remote_command.rb', line 13

def execute
  Gem2exe.ensure_setup
  out_with_path = out || entrypoint

  unpacker = Unpacker.new gem: gem, version: version
  unpacker.unpack

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