Skip to content
Eject and close tray on your devices.
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example
lib
test
.gitignore
.travis.yml
.yardopts
Gemfile
MIT-LICENSE
README.md
Rakefile
ejectable.gemspec

README.md

ejectable

Description

Eject and close tray on your devices.

Features

  • Eject tray
  • Close tray

Usage

Setup

require 'ejectable'

Use via method

include Ejectable

eject_tray

Use device class

device = Ejectable::Device.new
device.eject_tray

Auto closing after operation

device.eject_tray! do
  sleep 5
end

Requirements

Install

git-repos

git clone https://github.com/kachick/ejectable.git
gem build ejectable.gemspec
gem install ./ejectable

rubygems.org

gem install ejectable

Build Status

Build Status

Link

License

The MIT X11 License
Copyright (c) 2013 Kenichi Kamiya
See MIT-LICENSE for further details.

Something went wrong with that request. Please try again.