Class: Pod::Command::Build

Inherits:
Pod::Command show all
Defined in:
lib/cocoapods-aqarahome/command/build.rb

Instance Method Summary collapse

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

#runObject



17
18
19
# File 'lib/cocoapods-aqarahome/command/build.rb', line 17

def run
  system("#{@envs.join(' ')} pod install")
end