Class: OrmDev::Command::Setup

Inherits:
OrmDev::Command show all
Defined in:
lib/ormdev/command/setup.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Setup

Returns a new instance of Setup.



21
22
23
# File 'lib/ormdev/command/setup.rb', line 21

def initialize(argv)
  super
end

Class Method Details

.optionsObject



16
17
18
19
# File 'lib/ormdev/command/setup.rb', line 16

def self.options
  [
  ].concat(super)
end

Instance Method Details

#runObject



29
30
31
32
33
34
35
36
37
38
# File 'lib/ormdev/command/setup.rb', line 29

def run
  super
  OrmDev::LogUtil.info '[插件开发] 初始化pod仓库'.green
  OrmDev::SHUtil.run_command('pod repo add orm https://gitee.com/mvn/ios.git','更验证Pod',false)
  OrmDev::SHUtil.run_command('pod repo update','更验证Pod',false)
  OrmDev::LogUtil.info '创建插件工程:'
  OrmDev::LogUtil.info '   ormdev create CIPXxx'.magenta
  OrmDev::LogUtil.info '或者使用快速创建插件工程:'
  OrmDev::LogUtil.info '   ormdev create CIPXxx --fast'.magenta
end

#validate!Object



25
26
27
# File 'lib/ormdev/command/setup.rb', line 25

def validate!
  super
end