Class: StillActive::Config
- Inherits:
-
Object
- Object
- StillActive::Config
- Defined in:
- lib/still_active/config.rb
Instance Attribute Summary collapse
-
#critical_warning_emoji ⇒ Object
Returns the value of attribute critical_warning_emoji.
-
#futurist_emoji ⇒ Object
Returns the value of attribute futurist_emoji.
-
#gemfile_path ⇒ Object
Returns the value of attribute gemfile_path.
-
#gems ⇒ Object
Returns the value of attribute gems.
-
#github_oauth_token ⇒ Object
Returns the value of attribute github_oauth_token.
-
#no_warning_range_end ⇒ Object
Returns the value of attribute no_warning_range_end.
-
#output_format ⇒ Object
Returns the value of attribute output_format.
-
#parallelism ⇒ Object
Returns the value of attribute parallelism.
-
#success_emoji ⇒ Object
Returns the value of attribute success_emoji.
-
#unsure_emoji ⇒ Object
Returns the value of attribute unsure_emoji.
-
#warning_emoji ⇒ Object
Returns the value of attribute warning_emoji.
-
#warning_range_end ⇒ Object
Returns the value of attribute warning_range_end.
Instance Method Summary collapse
- #github_client ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/still_active/config.rb', line 20 def initialize @gemfile_path = Bundler.default_gemfile.to_s @gems = [] @parallelism = 10 @output_format = :markdown @critical_warning_emoji = "🚩" @futurist_emoji = "🔮" @success_emoji = "✅" @unsure_emoji = "❓" @warning_emoji = "⚠️" @no_warning_range_end = 1 @warning_range_end = 3 end |
Instance Attribute Details
#critical_warning_emoji ⇒ Object
Returns the value of attribute critical_warning_emoji.
7 8 9 |
# File 'lib/still_active/config.rb', line 7 def critical_warning_emoji @critical_warning_emoji end |
#futurist_emoji ⇒ Object
Returns the value of attribute futurist_emoji.
7 8 9 |
# File 'lib/still_active/config.rb', line 7 def futurist_emoji @futurist_emoji end |
#gemfile_path ⇒ Object
Returns the value of attribute gemfile_path.
7 8 9 |
# File 'lib/still_active/config.rb', line 7 def gemfile_path @gemfile_path end |
#gems ⇒ Object
Returns the value of attribute gems.
7 8 9 |
# File 'lib/still_active/config.rb', line 7 def gems @gems end |
#github_oauth_token ⇒ Object
Returns the value of attribute github_oauth_token.
7 8 9 |
# File 'lib/still_active/config.rb', line 7 def github_oauth_token @github_oauth_token end |
#no_warning_range_end ⇒ Object
Returns the value of attribute no_warning_range_end.
7 8 9 |
# File 'lib/still_active/config.rb', line 7 def no_warning_range_end @no_warning_range_end end |
#output_format ⇒ Object
Returns the value of attribute output_format.
7 8 9 |
# File 'lib/still_active/config.rb', line 7 def output_format @output_format end |
#parallelism ⇒ Object
Returns the value of attribute parallelism.
7 8 9 |
# File 'lib/still_active/config.rb', line 7 def parallelism @parallelism end |
#success_emoji ⇒ Object
Returns the value of attribute success_emoji.
7 8 9 |
# File 'lib/still_active/config.rb', line 7 def success_emoji @success_emoji end |
#unsure_emoji ⇒ Object
Returns the value of attribute unsure_emoji.
7 8 9 |
# File 'lib/still_active/config.rb', line 7 def unsure_emoji @unsure_emoji end |
#warning_emoji ⇒ Object
Returns the value of attribute warning_emoji.
7 8 9 |
# File 'lib/still_active/config.rb', line 7 def warning_emoji @warning_emoji end |
#warning_range_end ⇒ Object
Returns the value of attribute warning_range_end.
7 8 9 |
# File 'lib/still_active/config.rb', line 7 def warning_range_end @warning_range_end end |
Instance Method Details
#github_client ⇒ Object
38 39 40 41 |
# File 'lib/still_active/config.rb', line 38 def github_client @github_client ||= Github.new(oauth_token: github_oauth_token) end |