Class: Bundler::InstallDashDocs::Dash
- Inherits:
-
Object
- Object
- Bundler::InstallDashDocs::Dash
- Defined in:
- lib/bundler/install_dash_docs/dash.rb
Overview
Methods for interacting with Dash.app
Class Method Summary collapse
-
.install(gem_name, version, quiet: false, trace: false, dry_run: false) ⇒ Object
Installs the provided gem documentation into Dash.app.
Class Method Details
.install(gem_name, version, quiet: false, trace: false, dry_run: false) ⇒ Object
Installs the provided gem documentation into Dash.app
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/bundler/install_dash_docs/dash.rb', line 14 def self.install(gem_name, version, quiet: false, trace: false, dry_run: false) puts "Installing docs for #{gem_name} #{version}" unless quiet url = DashInstallUrl.new(gem_name, version) command = [ "open", "-g", url.to_str ] puts("+ " + command.join(" ")) if trace unless dry_run system(*command) sleep 2 end end |