Class: Rubysmith::Configuration::Transformers::GitHubUser
- Inherits:
-
Object
- Object
- Rubysmith::Configuration::Transformers::GitHubUser
- Defined in:
- lib/rubysmith/configuration/transformers/git_hub_user.rb
Overview
Dynamically adds GitHub user if user is defined.
Instance Method Summary collapse
Instance Method Details
#call(content) ⇒ Object
13 14 15 16 17 |
# File 'lib/rubysmith/configuration/transformers/git_hub_user.rb', line 13 def call content return Success content if content[:git_hub_user] git.get("github.user").fmap { |user| content.merge! git_hub_user: user } end |