Class: LicenseFinder::CLI::IgnoredBundlerGroups

Inherits:
ConfigSubcommand show all
Defined in:
lib/license_finder/cli.rb

Instance Method Summary collapse

Methods inherited from Subcommand

banner

Methods inherited from Base

subcommand

Instance Method Details

#add(group) ⇒ Object



168
169
170
171
172
173
# File 'lib/license_finder/cli.rb', line 168

def add(group)
  modifying {
    LicenseFinder.config.ignore_groups.push(group)
  }
  say "Added #{group} to the ignored bundler groups"
end

#listObject



158
159
160
161
162
163
164
165
# File 'lib/license_finder/cli.rb', line 158

def list
  ignored = LicenseFinder.config.ignore_groups

  say "Ignored Bundler Groups:", :blue
  ignored.each do |group|
    say group
  end
end

#remove(group) ⇒ Object



176
177
178
179
180
181
# File 'lib/license_finder/cli.rb', line 176

def remove(group)
  modifying {
    LicenseFinder.config.ignore_groups.delete(group)
  }
  say "Removed #{group} from the ignored bundler groups"
end