cocoapods-packager-ext 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 975c1587853affa9927f595278b2f4a14dbe1c043994dbffff6e79394d4f9519
|
4
|
+
data.tar.gz: d11655a9c1fd7dadaf3dd5bdb154b1b014aa7e20c2bde9cbe82bc2bf1d9dd2c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8694a1df3a49c9b61d084694137626f95315cd1a42fc3d0a5b1587628c042d51d39f54741be2e9010ed145a2e82d475aea02153bc84ded6f51eb77735db1c3d
|
7
|
+
data.tar.gz: 525356691709d4ca1be7ec7d8d464c417d0d15dea6f4dcb9d27e17fc17d89c074eb26ee433e33f8a09ace24a53671f831d1e304b08705dfaed2bbdb28f8a7f7c
|
@@ -13,59 +13,79 @@ module Pod
|
|
13
13
|
|
14
14
|
end
|
15
15
|
|
16
|
-
|
16
|
+
class Command
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
18
|
+
# This is an example of a cocoapods plugin adding a top-level subcommand
|
19
|
+
# to the 'pod' command.
|
20
|
+
#
|
21
|
+
# You can also create subcommands of existing or new commands. Say you
|
22
|
+
# wanted to add a subcommand to `list` to show newly deprecated pods,
|
23
|
+
# (e.g. `pod list deprecated`), there are a few things that would need
|
24
|
+
# to change.
|
25
|
+
#
|
26
|
+
# - move this file to `lib/pod/command/list/deprecated.rb` and update
|
27
|
+
# the class to exist in the the Pod::Command::List namespace
|
28
|
+
# - change this class to extend from `List` instead of `Command`. This
|
29
|
+
# tells the plugin system that it is a subcommand of `list`.
|
30
|
+
# - edit `lib/cocoapods_plugins.rb` to require this file
|
31
|
+
#
|
32
|
+
# @todo Create a PR to add your plugin to CocoaPods/cocoapods.org
|
33
|
+
# in the `plugins.json` file, once your plugin is released.
|
34
|
+
#
|
35
|
+
class Install
|
36
|
+
def self.options
|
37
|
+
[
|
38
|
+
['--repo-update', 'Force running `pod repo update` before install'],
|
39
|
+
['--deployment', 'Disallow any changes to the Podfile or the Podfile.lock during installation'],
|
40
|
+
['--clean-install', 'Ignore the contents of the project cache and force a full pod installation. This only ' \
|
41
|
+
'applies to projects that have enabled incremental installation'],
|
42
|
+
['--dry-deps','only test depend'],
|
43
|
+
].concat(super).reject { |(name, _)| name == '--no-repo-update' }
|
44
|
+
end
|
45
|
+
# class << self
|
46
|
+
# alias options_t options
|
47
|
+
# def options
|
48
|
+
# o = options_t
|
49
|
+
# o.push(['--dry-deps','only test depend'])
|
50
|
+
# o.concat(super)
|
51
|
+
# end
|
52
|
+
#
|
53
|
+
# end
|
54
|
+
def initialize(argv)
|
55
|
+
super
|
56
|
+
@deployment = argv.flag?('deployment', false)
|
57
|
+
@clean_install = argv.flag?('clean-install', false)
|
58
|
+
@dry_deps = argv.flag?('dry-deps',false)
|
42
59
|
end
|
43
60
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
61
|
+
# alias run_t run
|
62
|
+
# def run
|
63
|
+
# if @dry_deps
|
64
|
+
# verify_podfile_exists!
|
65
|
+
# installer = installer_for_config
|
66
|
+
# installer.repo_update = repo_update?(:default => false)
|
67
|
+
# installer.update = false
|
68
|
+
# installer.deployment = @deployment
|
69
|
+
# installer.clean_install = @clean_install
|
70
|
+
# installer.dry_deps = @dry_deps
|
71
|
+
# installer.install!
|
72
|
+
# else
|
73
|
+
# run_t
|
74
|
+
# end
|
75
|
+
# end
|
76
|
+
def run
|
56
77
|
verify_podfile_exists!
|
57
78
|
installer = installer_for_config
|
58
79
|
installer.repo_update = repo_update?(:default => false)
|
59
80
|
installer.update = false
|
60
81
|
installer.deployment = @deployment
|
61
82
|
installer.clean_install = @clean_install
|
62
|
-
|
83
|
+
if @dry_deps
|
84
|
+
installer.dry_deps = @dry_deps
|
85
|
+
end
|
63
86
|
installer.install!
|
64
|
-
else
|
65
|
-
run_t
|
66
87
|
end
|
67
|
-
end
|
68
88
|
|
89
|
+
end
|
69
90
|
end
|
70
|
-
end
|
71
91
|
end
|