module AllSeeingPi
  class Camera
    def capture
      `./capture.sh`.strip
    end
  end
end

module AllSeeingPi
  class Camera
    attr_reader :script

    def initialize
      @script = File.expand_path('../../../capture.sh', __FILE__)
    end

    def capture
      `#{script}`.strip
    end
  end
end

Use relative path for capture script.
Use relative path for capture script.
