Using Ruby libraries and gems with a Shoes app

后端 未结 2 818
再見小時候
再見小時候 2020-12-24 15:11

I am writing a little Shoes app that requires a library I wrote with my regular Ruby installation. My library uses the \'net-ssh\' gem and a bunch of other Ruby libraries.

2条回答
  •  星月不相逢
    2020-12-24 15:49

    For shoes4, the Shoes.setup method is deprecated. You can install the gems you need by either:

    1. gem install net-ssh
    2. Using bundler and a Gemfile

    Then, you only need to require 'net-ssh' in your application.

提交回复
热议问题