Commit 69796538 authored by Eloy Duran's avatar Eloy Duran

Cleanup output.

parent ef9ac10a
...@@ -46,7 +46,7 @@ module Pod ...@@ -46,7 +46,7 @@ module Pod
end end
def add def add
puts "==> Cloning spec repo `#{@name}' from `#{@url}'" unless config.silent? puts "Cloning spec repo `#{@name}' from `#{@url}'" unless config.silent?
config.repos_dir.mkpath config.repos_dir.mkpath
Dir.chdir(config.repos_dir) { git("clone '#{@url}' #{@name}") } Dir.chdir(config.repos_dir) { git("clone '#{@url}' #{@name}") }
end end
...@@ -54,7 +54,7 @@ module Pod ...@@ -54,7 +54,7 @@ module Pod
def update def update
dirs = @name ? [dir] : config.repos_dir.children dirs = @name ? [dir] : config.repos_dir.children
dirs.each do |dir| dirs.each do |dir|
puts "==> Updating spec repo `#{dir.basename}'" unless config.silent? puts "Updating spec repo `#{dir.basename}'" unless config.silent?
Dir.chdir(dir) { git("pull") } Dir.chdir(dir) { git("pull") }
end end
end end
......
module Pod module Pod
module Generator module Generator
class BridgeSupport class BridgeSupport
include Config::Mixin
extend Executable extend Executable
executable :gen_bridge_metadata executable :gen_bridge_metadata
...@@ -17,7 +15,6 @@ module Pod ...@@ -17,7 +15,6 @@ module Pod
end end
def save_as(pathname) def save_as(pathname)
puts "==> Generating BridgeSupport metadata file at `#{pathname}'" unless config.silent?
gen_bridge_metadata %{-c "#{search_paths.join(' ')}" -o '#{pathname}' '#{headers.join("' '")}'} gen_bridge_metadata %{-c "#{search_paths.join(' ')}" -o '#{pathname}' '#{headers.join("' '")}'}
end end
end end
......
...@@ -69,11 +69,11 @@ module Pod ...@@ -69,11 +69,11 @@ module Pod
end end
def install! def install!
puts "Installing dependencies of: #{@podfile.defined_in_file}" unless config.silent? puts "Installing dependencies of: #{@podfile.defined_in_file}" if config.verbose?
install_dependencies! install_dependencies!
root = config.project_pods_root root = config.project_pods_root
puts "Generating support files..." unless config.silent? puts "Generating support files" unless config.silent?
target_installers.each do |target_installer| target_installers.each do |target_installer|
target_installer.install! target_installer.install!
target_installer.create_files_in(root) target_installer.create_files_in(root)
......
...@@ -121,12 +121,16 @@ module Pod ...@@ -121,12 +121,16 @@ module Pod
end end
def create_files_in(root) def create_files_in(root)
xcconfig.save_as(root + xcconfig_filename)
if @podfile.generate_bridge_support? if @podfile.generate_bridge_support?
puts "* Generating BridgeSupport metadata file at `#{root + bridge_support_filename}'" if config.verbose?
bridge_support_generator.save_as(root + bridge_support_filename) bridge_support_generator.save_as(root + bridge_support_filename)
copy_resources_script.resources << bridge_support_filename copy_resources_script.resources << bridge_support_filename
end end
puts "* Generating xcconfig file at `#{root + xcconfig_filename}'" if config.verbose?
xcconfig.save_as(root + xcconfig_filename)
puts "* Generating prefix header at `#{root + prefix_header_filename}'" if config.verbose?
save_prefix_header_as(root + prefix_header_filename) save_prefix_header_as(root + prefix_header_filename)
puts "* Generating copy resources script at `#{root + copy_resources_filename}'" if config.verbose?
copy_resources_script.save_as(root + copy_resources_filename) copy_resources_script.save_as(root + copy_resources_filename)
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment