Skip to content

Commit

Permalink
add logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gfontenot committed Nov 2, 2012
1 parent 13fe7de commit 8b5c1e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/liftoff/git_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ def generate_files
private

def generate_gitignore
say 'Writing .gitignore'
write_unique_contents_to_file(GITIGNORE_CONTENTS, '.gitignore')
end

def generate_gitattributes
say 'Writing .gitattributes'
write_unique_contents_to_file(GITATTRIBUTES_CONTENTS, '.gitattributes')
end

Expand Down
4 changes: 4 additions & 0 deletions lib/liftoff/xcodeproj_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,21 @@ def initialize
end

def treat_warnings_as_errors
say 'Setting GCC_TREAT_WARNINGS_AS_ERRORS for Release builds'
@target.build_settings('Release')['GCC_TREAT_WARNINGS_AS_ERRORS'] = 'YES'
save_changes
end

def enable_all_warnings
say 'Setting -Wall for all builds'
@target.build_configurations.each do |configuration|
configuration.build_settings['WARNING_CFLAGS'] = '-Wall'
end
save_changes
end

def set_indentation_level(level)
say "Setting the project indentation level to #{level} spaces"
project_attributes = @project.main_group.attributes
project_attributes['indentWidth'] = level
project_attributes['tabWidth'] = level
Expand All @@ -35,6 +38,7 @@ def set_indentation_level(level)
end

def add_todo_script_phase
say 'Adding shell script build phase to warn on TODO and FIXME comments'
add_shell_script_build_phase(TODO_WARNING_SCRIPT, 'Warn for TODO and FIXME comments')
end

Expand Down

0 comments on commit 8b5c1e1

Please sign in to comment.