Class: Pik::Implementations::DevKit

Inherits:
Base show all
Defined in:
lib/pik/implementations.rb

Instance Method Summary collapse

Methods inherited from Base

find, #find, #most_recent, #read, #subclass, #url, #versions

Constructor Details

#initializeDevKit

Returns a new instance of DevKit.



132
133
134
135
136
# File 'lib/pik/implementations.rb', line 132

def initialize
  super
  @path = "/frs/?group_id=167"
  @re   = /(.+devkit-(.*)-.*\.7z)/
end

Instance Method Details

#after_install(install) ⇒ Object



138
139
140
141
142
143
144
145
146
147
148
# File 'lib/pik/implementations.rb', line 138

def after_install(install)
  devkit = install.target + 'devkit'
  p = Pik::Config.new(["devkit=#{devkit.to_windows}"], install.config)
  p.execute
  p.close

  p = Pik::Devkit.new(["update"], install.config)
  p.execute
  p.close
  puts
end