Class: Gemsmith::Tools::Viewer
- Inherits:
-
Object
- Object
- Gemsmith::Tools::Viewer
- Defined in:
- lib/gemsmith/tools/viewer.rb
Overview
Views a gem within default browser.
Instance Method Summary collapse
Instance Method Details
#call(specification) ⇒ Object
12 13 14 15 16 |
# File 'lib/gemsmith/tools/viewer.rb', line 12 def call specification executor.capture3("open", specification.homepage_url).then do |_stdout, stderr, status| status.success? ? Success(specification) : Failure(stderr) end end |