Method: Codeguard::Install#perform

Defined in:
lib/codeguard/install.rb

#performObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/codeguard/install.rb', line 15

def perform
  output = config_gem_path.read
  prepare_dir
  output = if write_to_file(config_project_path, output)
             "File: #{config_project_path} was updated!"
           else
             "File: #{config_project_path} was created!"
           end
  puts Rainbow(output).green
end