Class: HomebrewAutomation::CLI::FormulaCommands
- Inherits:
-
Thor
- Object
- Thor
- HomebrewAutomation::CLI::FormulaCommands
- Defined in:
- lib/homebrew_automation/cli/formula_commands.rb
Instance Method Summary collapse
Instance Method Details
#put_bottle ⇒ Object
25 26 27 28 29 |
# File 'lib/homebrew_automation/cli/formula_commands.rb', line 25 def put_bottle before = HomebrewAutomation::Formula.parse_string($stdin.read) after = before.put_bottle([:os], [:sha256]) $stdout.write after end |
#put_sdist ⇒ Object
16 17 18 19 20 |
# File 'lib/homebrew_automation/cli/formula_commands.rb', line 16 def put_sdist before = HomebrewAutomation::Formula.parse_string($stdin.read) after = before.put_sdist [:url], [:sha256] $stdout.write after end |