class HomebrewAutomation::CLI::WorkflowCommands
Public Instance Methods
build_and_upload()
click to toggle source
# File lib/homebrew_automation/cli/workflow_commands.rb, line 31 def build_and_upload workflow.build_and_upload_bottle!( sdist, tap, git, formula_name, bintray_version, logger, keep_tap_repo: options[:keep_tap_repo], keep_homebrew_tmp: options[:keep_brew_tmp]) end
gather_and_publish()
click to toggle source
# File lib/homebrew_automation/cli/workflow_commands.rb, line 50 def gather_and_publish workflow.gather_and_publish_bottles!( sdist, tap, formula_name, bintray_version, git, logger) end
Private Instance Methods
bintray_client()
click to toggle source
# File lib/homebrew_automation/cli/workflow_commands.rb, line 85 def bintray_client HomebrewAutomation::Bintray::Client.new( options[:bintray_user], options[:bintray_token]) end
bintray_version()
click to toggle source
DOC: default values here
# File lib/homebrew_automation/cli/workflow_commands.rb, line 92 def bintray_version HomebrewAutomation::Bintray::Version.new( bintray_client, logger, options[:bintray_repo] || "homebrew-bottles", options[:bintray_package] || sdist.repo, options[:bintray_version] || sdist.tag.sub(/^v/, '')) end
formula_name()
click to toggle source
DOC: default values here
# File lib/homebrew_automation/cli/workflow_commands.rb, line 81 def formula_name options[:formula_name] || sdist.repo end
git()
click to toggle source
# File lib/homebrew_automation/cli/workflow_commands.rb, line 76 def git HomebrewAutomation::Git.new end
logger()
click to toggle source
# File lib/homebrew_automation/cli/workflow_commands.rb, line 105 def logger HomebrewAutomation::Logger.new end
sdist()
click to toggle source
# File lib/homebrew_automation/cli/workflow_commands.rb, line 62 def sdist HomebrewAutomation::SourceDist.new( options[:source_user], options[:source_repo], options[:source_tag]) end
tap()
click to toggle source
# File lib/homebrew_automation/cli/workflow_commands.rb, line 69 def tap HomebrewAutomation::Tap.new( options[:tap_user], options[:tap_repo], options[:tap_token]) end
workflow()
click to toggle source
# File lib/homebrew_automation/cli/workflow_commands.rb, line 101 def workflow HomebrewAutomation::Workflow.new end