Class: Pindo::Command::Ios::Podupdate
Constant Summary
DEFAULT_OPTIONS, DEFAULT_ROOT_OPTIONS
Instance Attribute Summary
#args_help_flag
Class Method Summary
collapse
Instance Method Summary
collapse
command_name, #initialize_options, run, use_cache?
#pindo_log_instance
#pindo_single_config
Constructor Details
#initialize(argv) ⇒ Podupdate
Returns a new instance of Podupdate.
44
45
46
47
48
49
50
51
52
|
# File 'lib/pindo/command/ios/podupdate.rb', line 44
def initialize(argv)
@options = initialize_options(argv)
@args_install_flag = @options[:install] || false
@project_dir = @options[:path]
@additional_args = argv.remainder!
super(argv)
end
|
Class Method Details
.option_items ⇒ Object
36
37
38
|
# File 'lib/pindo/command/ios/podupdate.rb', line 36
def self.option_items
@option_items ||= Pindo::Options::PodOptions.select(:path, :install)
end
|
.options ⇒ Object
40
41
42
|
# File 'lib/pindo/command/ios/podupdate.rb', line 40
def self.options
option_items.map(&:to_claide_option).concat(super)
end
|
Instance Method Details
#run ⇒ Object
59
60
61
62
63
64
65
|
# File 'lib/pindo/command/ios/podupdate.rb', line 59
def run
Pindo::CocoaPodsHelper.update_pod_repo(
install: @args_install_flag,
project_dir: @project_dir
)
end
|
#validate! ⇒ Object
54
55
56
57
|
# File 'lib/pindo/command/ios/podupdate.rb', line 54
def validate!
super
@project_dir=Dir.pwd if @project_dir.nil? || @project_dir.empty?
end
|