Class: Decidim::ReleaseManager

Inherits:
Object
  • Object
show all
Defined in:
lib/decidim/release_manager.rb

Overview

Provides utilities for performing the releases.

Class Method Summary collapse

Class Method Details

.git_remoteObject

Resolves the remote where the tags will be pushed during the release.



10
11
12
# File 'lib/decidim/release_manager.rb', line 10

def self.git_remote
  @git_remote ||= `git remote -v | grep -e 'decidim/decidim\\([^ ]*\\) (push)' | sed 's/\\s.*//'`.strip
end

.git_remote_set?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/decidim/release_manager.rb', line 14

def self.git_remote_set?
  git_remote.present?
end