Class: StillActive::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/still_active/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_emojiObject

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_emojiObject

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_pathObject

Returns the value of attribute gemfile_path.



7
8
9
# File 'lib/still_active/config.rb', line 7

def gemfile_path
  @gemfile_path
end

#gemsObject

Returns the value of attribute gems.



7
8
9
# File 'lib/still_active/config.rb', line 7

def gems
  @gems
end

#github_oauth_tokenObject

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_endObject

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_formatObject

Returns the value of attribute output_format.



7
8
9
# File 'lib/still_active/config.rb', line 7

def output_format
  @output_format
end

#parallelismObject

Returns the value of attribute parallelism.



7
8
9
# File 'lib/still_active/config.rb', line 7

def parallelism
  @parallelism
end

#success_emojiObject

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_emojiObject

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_emojiObject

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_endObject

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_clientObject



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