Class: TalkLikeAPirate::InstallLocalConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/install_local_config.rb

Class Method Summary collapse

Class Method Details

.install(target_file_path = nil) ⇒ Object



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

def install(target_file_path=nil)
  target_file_path = set_target_file_path(target_file_path)
  if File.exists?(target_file_path)
    "Configuration file already exists at #{target_file_path}"
  else
    copy_local_config_template_to(target_file_path)
    output_local_instructions(target_file_path)
  end
end