Class: Pod::Command::Install
- Inherits:
-
Pod::Command
- Object
- Pod::Command
- Pod::Command::Install
- Defined in:
- lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Install
constructor
A new instance of Install.
- #old_run ⇒ Object
- #run ⇒ Object
- #validate! ⇒ Object
Constructor Details
#initialize(argv) ⇒ Install
Returns a new instance of Install.
244 245 246 247 248 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 244 def initialize(argv) super CocoapodsSoulComponentPlugin.import_dependency = argv.option('import-dependency',CocoapodsSoulComponentPlugin.import_dependency) CocoapodsSoulComponentPlugin.use_source = argv.flag?('source', CocoapodsSoulComponentPlugin.use_source) end |
Class Method Details
.options ⇒ Object
237 238 239 240 241 242 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 237 def self. [ ['--source', 'Use source'], ['--import-dependency', 'Use importDependency'] ].concat(super) end |
Instance Method Details
#old_run ⇒ Object
250 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 250 alias old_run run |
#run ⇒ Object
252 253 254 255 256 257 258 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 252 def run # Pod::UI.puts "这是测试版本".red Pod::UI.puts "当前版本:#{CocoapodsSoulComponentPlugin::VERSION}".green CocoapodsSoulComponentPlugin.pre_run if CocoapodsSoulComponentPlugin.use_components old_run CocoapodsSoulComponentPlugin.post_run if CocoapodsSoulComponentPlugin.use_components end |
#validate! ⇒ Object
260 261 262 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 260 def validate! super end |