Method: Capkin::Robot#initialize

Defined in:
lib/capkin/robot.rb

#initialize(config, stage = nil) ⇒ Robot

Returns a new instance of Robot.



23
24
25
26
27
28
29
30
31
# File 'lib/capkin/robot.rb', line 23

def initialize(config, stage = nil)
  @app = config['app']
  @source ||= File.join(config['build'], "#{@app}.apk")
  stage = stage.join if stage.respond_to?(:join)
  @stage = stage.strip.empty? ? STAGE : stage.strip

  @pkg = namespace
  init_google
end