Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
6998e436
Commit
6998e436
authored
Dec 15, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Command::Project] Temporary fix for not overriding the config.
parent
9ccd8e89
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
project.rb
lib/cocoapods/command/project.rb
+10
-4
config.rb
lib/cocoapods/config.rb
+2
-6
No files found.
lib/cocoapods/command/project.rb
View file @
6998e436
...
...
@@ -16,11 +16,17 @@ module Pod
base
.
extend
Options
end
# @todo find a better way to not override the config if the flag was not
# specified. A solution could be a method called only if the flag
# is not nil:
#
# argv.set_flag('clean') { |value| config.clean = value }
#
def
initialize
(
argv
)
config
.
clean
=
argv
.
flag?
(
'clean'
,
true
)
config
.
generate_docs
=
argv
.
flag?
(
'doc'
,
true
)
config
.
integrate_targets
=
argv
.
flag?
(
'integrate'
,
true
)
config
.
skip_repo_update
=
!
argv
.
flag?
(
'update'
,
true
)
config
.
clean
=
value
if
value
=
argv
.
flag?
(
'clean'
)
config
.
generate_docs
=
value
if
value
=
argv
.
flag?
(
'doc'
)
config
.
integrate_targets
=
value
if
value
=
argv
.
flag?
(
'integrate'
)
config
.
skip_repo_update
=
value
if
value
=
!
argv
.
flag?
(
'update'
)
super
end
...
...
lib/cocoapods/config.rb
View file @
6998e436
require
'pathname'
module
Pod
# Stores the global configuration of CocoaPods.
...
...
@@ -98,8 +96,8 @@ module Pod
if
user_settings_file
.
exist?
require
'yaml'
user_
config
=
YAML
.
load_file
(
user_settings_file
)
configure_with
(
user_
config
)
user_
settings
=
YAML
.
load_file
(
user_settings_file
)
configure_with
(
user_
settings
)
end
end
...
...
@@ -189,8 +187,6 @@ module Pod
# @note The Podfile can be named either `CocoaPods.podfile` or `Podfile`.
# The first is preferred as it allows to specify an OS X UTI.
#
# @todo Rename to podfile_path.
#
def
podfile_path
unless
@podfile_path
@podfile_path
=
project_root
+
'CocoaPods.podfile'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment