Module: AppConfig::PostInstall

Defined in:
lib/post_install.rb

Class Method Summary collapse

Class Method Details

.messageObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/post_install.rb', line 3

def self.message
  unless File.directory?(File.expand_path('~/.collage', __FILE__))
    FileUtils.mkdir(File.expand_path('~/.collage/'))
    FileUtils.cp('config.yaml', File.expand_path('~/.collage/config.yaml'))
    puts <<-MESSAGE
  A basic Yaml Configuration file has been copied to ~/.collage/config.yaml
  you modify that to change some setting.
  MESSAGE
  end
end