Class: Team
- Inherits:
-
Object
- Object
- Team
- Defined in:
- lib/actions/teams.rb
Instance Attribute Summary collapse
-
#teamlist ⇒ Object
Returns the value of attribute teamlist.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#teamlist ⇒ Object
Returns the value of attribute teamlist.
7 8 9 |
# File 'lib/actions/teams.rb', line 7 def teamlist @teamlist end |
Class Method Details
.shell_prompt(config) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/actions/teams.rb', line 9 def self.shell_prompt(config) if config['Repo'].nil? Rainbow("#{config['User']}> ").aqua << Rainbow("#{config['Org']}> ").magenta << Rainbow("#{config['Team']}> ").color('#eeff41') else Rainbow("#{config['User']}> ").aqua + Rainbow("#{config['Org']}> ").magenta << Rainbow("#{config['Team']}> ").color('#eeff41') << Rainbow("#{config['Repo']}> ").color(236, 151, 21) end end |
Instance Method Details
#build_cd_syntax(type, name) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/actions/teams.rb', line 17 def build_cd_syntax(type, name) syntax_map = { 'repo' => "Team.new.cd('repo', #{name}, client, env)" } unless syntax_map.key?(type) raise Rainbow("cd #{type} currently not supported.").color('#cc0000') end syntax_map[type] end |