Class: Swiftly::ConfigGlobalGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



13
14
15
# File 'lib/swiftly/config_global_generator.rb', line 13

def self.source_root
  File.dirname(__FILE__)
end

Instance Method Details

#createObject



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/swiftly/config_global_generator.rb', line 17

def create

  @version = VERSION

  template(
    File.join(
      'templates',
      'config_global.erb'
    ),
    File.join(
      Dir.home,
      ".#{APP_NAME}"
    ),
    :verbose => false
  )

end