Class: Faststrap::InstallActions::HomebrewInstallAction
- Inherits:
-
Faststrap::InstallAction
- Object
- Faststrap::InstallAction
- Faststrap::InstallActions::HomebrewInstallAction
- Defined in:
- lib/faststrap/install_actions/homebrew_install_action.rb
Class Method Summary collapse
- .cmd ⇒ Object
- .description ⇒ Object
- .group ⇒ Object
- .installed? ⇒ Boolean
- .name ⇒ Object
- .ucmd ⇒ Object
Methods inherited from Faststrap::InstallAction
Class Method Details
.cmd ⇒ Object
13 14 15 |
# File 'lib/faststrap/install_actions/homebrew_install_action.rb', line 13 def self.cmd system 'ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"' end |
.description ⇒ Object
10 11 12 |
# File 'lib/faststrap/install_actions/homebrew_install_action.rb', line 10 def self.description "Install Homebrew" end |
.group ⇒ Object
5 6 7 |
# File 'lib/faststrap/install_actions/homebrew_install_action.rb', line 5 def self.group Faststrap::ActionsGroup::INSTALLERS end |
.installed? ⇒ Boolean
26 27 28 |
# File 'lib/faststrap/install_actions/homebrew_install_action.rb', line 26 def self.installed? Faststrap::InstallActions.cmd? "brew" end |
.name ⇒ Object
22 23 24 |
# File 'lib/faststrap/install_actions/homebrew_install_action.rb', line 22 def self.name "Homebrew" end |
.ucmd ⇒ Object
18 19 20 |
# File 'lib/faststrap/install_actions/homebrew_install_action.rb', line 18 def self.ucmd system 'ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"' end |