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



146
147
148
149
150
151
# File 'lib/license_finder/cli.rb', line 146

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

#listObject



136
137
138
139
140
141
142
143
# File 'lib/license_finder/cli.rb', line 136

def list
  ignored = LicenseFinder.config.ignore_groups

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

#remove(group) ⇒ Object



154
155
156
157
158
159
# File 'lib/license_finder/cli.rb', line 154

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