Class: Bundler::Reorganizer::CLI

Inherits:
Thor::Group
  • Object
show all
Defined in:
lib/bundler/reorganizer/cli.rb

Constant Summary collapse

DEFAULT_GROUP =
[:default]

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#current_groupObject

Returns the value of attribute current_group.



7
8
9
# File 'lib/bundler/reorganizer/cli.rb', line 7

def current_group
  @current_group
end

#groupsObject

Returns the value of attribute groups.



7
8
9
# File 'lib/bundler/reorganizer/cli.rb', line 7

def groups
  @groups
end

#rubiesObject

Returns the value of attribute rubies.



7
8
9
# File 'lib/bundler/reorganizer/cli.rb', line 7

def rubies
  @rubies
end

#sourcesObject

Returns the value of attribute sources.



7
8
9
# File 'lib/bundler/reorganizer/cli.rb', line 7

def sources
  @sources
end

Instance Method Details

#reorganizeObject



12
13
14
15
16
17
18
19
# File 'lib/bundler/reorganizer/cli.rb', line 12

def reorganize
  @sources = []
  @rubies = []
  @groups = {}

  parse_gemfile
  output_gemfile
end