module PoiseLanguages::Static::Mixin
Mixin
for language providers to install from static archives.
@since 1.1.0
Private Instance Methods
install_static()
click to toggle source
# File lib/poise_languages/static/mixin.rb, line 28 def install_static url = static_url poise_languages_static static_folder do source url strip_components options['strip_components'] end end
static_folder()
click to toggle source
# File lib/poise_languages/static/mixin.rb, line 42 def static_folder options['path'] || ::File.join('', 'opt', "#{self.class.static_name}-#{options['static_version']}") end
static_url()
click to toggle source
# File lib/poise_languages/static/mixin.rb, line 46 def static_url options['url'] % static_url_variables end
static_url_variables()
click to toggle source
# File lib/poise_languages/static/mixin.rb, line 50 def static_url_variables { version: options['static_version'], kernel: node['kernel']['name'].downcase, machine: node['kernel']['machine'], machine_label: self.class.static_machine_label_wrapper(node, new_resource), } end
uninstall_static()
click to toggle source
# File lib/poise_languages/static/mixin.rb, line 36 def uninstall_static install_static.tap do |r| r.action(:uninstall) end end