Top Level Namespace

Instance Method Summary collapse

Instance Method Details

#install_pluginsObject



4
5
6
7
8
9
10
11
12
13
14
15
# File 'ext/installer.rb', line 4

def install_plugins
  dir = File.expand_path("~/Library/RubyMotion/command/")

  Dir.glob(File.join(File.dirname(__FILE__), "../command/motion-*")).each do |path|
    file = File.basename(path)
    src = File.expand_path(path)
    dst = File.join(dir, file)

    FileUtils.mkdir_p(dir) unless File.exist?(dir)
    FileUtils.ln_sf src, dst
  end
end