Class: GemfileArranger::InitConfig

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/gemfile_arranger/cli.rb

Constant Summary collapse

SHORT_DESCRIPTION =
'Generate a simple .gemfile_arranger.yml, placed in the current directory'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



14
15
16
17
18
19
20
# File 'lib/gemfile_arranger/cli.rb', line 14

def self.source_root
  Pathname
    .new(__FILE__)
    .dirname
    .join('templates')
    .expand_path
end

Instance Method Details

#create_gemfile_arranger_ymlObject



22
23
24
# File 'lib/gemfile_arranger/cli.rb', line 22

def create_gemfile_arranger_yml
  copy_file '.gemfile_arranger.yml'
end