Class: Pod::Command::Build
- Inherits:
-
Pod::Command
- Object
- Pod::Command
- Pod::Command::Build
- Defined in:
- lib/cocoapods-aqarahome/command/build.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Build
constructor
A new instance of Build.
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ Build
Returns a new instance of Build.
7 8 9 10 11 12 13 14 15 |
# File 'lib/cocoapods-aqarahome/command/build.rb', line 7 def initialize(argv) @envs = [] # 循环直到没有更多非选项参数 while (arg = argv.shift_argument) @envs << "#{arg}=0" end super end |
Instance Method Details
#run ⇒ Object
17 18 19 |
# File 'lib/cocoapods-aqarahome/command/build.rb', line 17 def run system("#{@envs.join(' ')} pod install") end |