Class: HomebrewAutomation::CLI::FormulaCommands

Inherits:
Thor
  • Object
show all
Defined in:
lib/homebrew_automation/cli/formula_commands.rb

Instance Method Summary collapse

Instance Method Details

#put_bottleObject



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(options[:os], options[:sha256])
  $stdout.write after
end

#put_sdistObject



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 options[:url], options[:sha256]
  $stdout.write after
end