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.
259 260 261 262 263 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 259 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
252 253 254 255 256 257 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 252 def self. [ ['--source', 'Use source'], ['--import-dependency', 'Use importDependency'] ].concat(super) end |
Instance Method Details
#old_run ⇒ Object
265 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 265 alias old_run run |
#run ⇒ Object
267 268 269 270 271 272 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 267 def run 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
274 275 276 |
# File 'lib/cocoapods-soul-component-plugin/command/soul-component-plugin.rb', line 274 def validate! super end |