Module: LogCabin::Modules::HomebrewCask
- Defined in:
- lib/prospectus/modules/homebrew_cask.rb
Overview
Pull state from a homebrew cask file
Instance Method Summary collapse
Instance Method Details
#load! ⇒ Object
6 7 8 9 10 11 |
# File 'lib/prospectus/modules/homebrew_cask.rb', line 6 def load! raise('No name specified') unless @name cask_file = "Casks/#{@name}.rb" output = `brew cask _stanza version #{cask_file}` @state.value = output.strip end |