Class: PPL::Command::New
Class Method Summary
collapse
Instance Method Summary
collapse
#argv_extension, ensure_not_root_or_allowed!, git_version, options_extension, run, verify_minimum_git_version!, verify_xcode_license_approved!
Constructor Details
#initialize(argv) ⇒ New
Returns a new instance of New.
27
28
29
30
31
|
# File 'lib/pod-pipeline/command/new.rb', line 27
def initialize(argv)
@name = argv.shift_argument
super
end
|
Class Method Details
.options ⇒ Object
17
18
19
|
# File 'lib/pod-pipeline/command/new.rb', line 17
def self.options
[].concat(super).concat(options_extension)
end
|
.options_extension_hash ⇒ Object
21
22
23
24
25
|
# File 'lib/pod-pipeline/command/new.rb', line 21
def self.options_extension_hash
Hash[
'lib-create' => Pod::Command::Lib::Create.options,
]
end
|
Instance Method Details
#run ⇒ Object
33
34
35
36
37
38
39
40
|
# File 'lib/pod-pipeline/command/new.rb', line 33
def run
const_name = 'TEMPLATE_REPO'
if Pod::Command::Lib::Create.const_defined?(const_name)
Pod::Command::Lib::Create.send(:remove_const, const_name)
Pod::Command::Lib::Create.const_set(const_name, 'https://github.com/TokiPods/pod-template.git'.freeze)
end
Pod::Command::Lib::Create.run([@name] + argv_extension['lib-create'])
end
|