Class: ShopifyCLI::Release
- Inherits:
-
Object
- Object
- ShopifyCLI::Release
- Defined in:
- lib/shopify_cli/release.rb
Instance Method Summary collapse
-
#initialize(new_version, github_access_token) ⇒ Release
constructor
A new instance of Release.
- #package! ⇒ Object
- #prepare! ⇒ Object
Constructor Details
#initialize(new_version, github_access_token) ⇒ Release
Returns a new instance of Release.
9 10 11 12 |
# File 'lib/shopify_cli/release.rb', line 9 def initialize(new_version, github_access_token) @new_version = new_version @github = Octokit::Client.new(access_token: github_access_token) end |
Instance Method Details
#package! ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/shopify_cli/release.rb', line 24 def package! ensure_updated_main ensure_correct_gem_version Rake::Task["package"].invoke update_homebrew create_github_release end |
#prepare! ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/shopify_cli/release.rb', line 14 def prepare! ensure_updated_main create_release_branch update_changelog update_versions_in_files commit_packaging pr = create_pr system("open #{pr["html_url"]}") end |