class RunLoop::DeviceAgent::Frameworks

@!visibility private

Public Instance Methods

install() click to toggle source

@!visibility private

# File lib/run_loop/device_agent/frameworks.rb, line 12
def install
  if File.exist?(frameworks)
    return true
  end

  options = { :log_cmd => true }

  Dir.chdir(rootdir) do
    RunLoop.log_unix_cmd("cd #{rootdir}")
    shell.run_shell_command(["ditto", "-xk", File.basename(zip), "."], options)
  end
end

Private Instance Methods

frameworks() click to toggle source

@!visibility private

# File lib/run_loop/device_agent/frameworks.rb, line 39
def frameworks
  @frameworks ||= File.join(rootdir, "Frameworks")
end
inspect() click to toggle source
# File lib/run_loop/device_agent/frameworks.rb, line 34
def inspect; to_s; end
rootdir() click to toggle source

@!visibility private

# File lib/run_loop/device_agent/frameworks.rb, line 49
def rootdir
  @rootdir ||= File.expand_path(File.join(File.dirname(__FILE__)))
end
shell() click to toggle source

@!visibility private TODO replace with include Shell

# File lib/run_loop/device_agent/frameworks.rb, line 29
def shell
  require "run_loop/shell"
  Class.new do
    include RunLoop::Shell
    def to_s; "#<Frameworks Shell>"; end
    def inspect; to_s; end
  end.new
end
to_s() click to toggle source
# File lib/run_loop/device_agent/frameworks.rb, line 33
def to_s; "#<Frameworks Shell>"; end
zip() click to toggle source

@!visibility private

# File lib/run_loop/device_agent/frameworks.rb, line 44
def zip
  @zip ||= File.join(rootdir, "Frameworks.zip")
end