Sha256: b9786b15418d885393778a77863ee786258ede426a4f8b818c3b6f8a601cd5a2

Contents?: true

Size: 845 Bytes

Versions: 2

Compression:

Stored size: 845 Bytes

Contents

class Skippy::OSCommon

  # @param [String] command
  def execute_command(command)
    # Something with a Thor application like skippy get the 'RUBYLIB'
    # environment set which prevents SketchUp from finding its StdLib
    # directories. (At least under Windows.) This relates to child processes
    # inheriting the environment variables of its parent.
    # To work around this we unset RUBYLIB before launching SketchUp. This
    # doesn't affect skippy as it's about to exit as soon as SketchUp starts
    # any way.
    ENV['RUBYLIB'] = nil if ENV['RUBYLIB']
    id = spawn(command)
    Process.detach(id)
  end

  # @param [String] path
  def launch_app(path, *args) # rubocop:disable Lint/UnusedMethodArgument
    raise NotImplementedError
  end

  def sketchup_apps
    raise NotImplementedError
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
skippy-0.4.2.a lib/skippy/os/common.rb
skippy-0.4.1.a lib/skippy/os/common.rb