lib/winrm-elevated.rb in winrm-elevated-1.2.1 vs lib/winrm-elevated.rb in winrm-elevated-1.2.2
- old
+ new
@@ -11,7 +11,7 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-require 'winrm'
+require 'winrm' unless defined?(WinRM::Connection)
require_relative 'winrm/shells/elevated'